Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions google/calendar/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! The data types sent to and returned from the API client.
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Serialize, Deserialize, PartialEq, Debug, Clone, JsonSchema)]
pub struct Acl {
Expand Down Expand Up @@ -1904,8 +1905,7 @@ pub struct FreeBusyResponse {
/**
* List of free/busy information for calendars.
*/
#[serde(default, skip_serializing_if = "Option::is_none")]
pub calendars: Option<FreeBusyCalendar>,
pub calendars: HashMap<String, FreeBusyCalendar>,
/**
* Expansion of groups.
*/
Expand Down Expand Up @@ -2040,23 +2040,11 @@ pub struct TimePeriod {
/**
* Last modification time of the color palette (as a RFC3339 timestamp). Read-only.
*/
#[serde(
default,
skip_serializing_if = "Option::is_none",
deserialize_with = "crate::utils::date_time_format::deserialize",
serialize_with = "crate::utils::google_calendar_date_time_format::serialize"
)]
pub end: Option<chrono::DateTime<chrono::Utc>>,
pub end: chrono::DateTime<chrono::Utc>,
/**
* Last modification time of the color palette (as a RFC3339 timestamp). Read-only.
*/
#[serde(
default,
skip_serializing_if = "Option::is_none",
deserialize_with = "crate::utils::date_time_format::deserialize",
serialize_with = "crate::utils::google_calendar_date_time_format::serialize"
)]
pub start: Option<chrono::DateTime<chrono::Utc>>,
pub start: chrono::DateTime<chrono::Utc>,
}

/**
Expand Down