pub struct AvailabilityRequest {
pub emails: Vec<String>,
pub duration_minutes: u32,
pub interval_minutes: Option<u32>,
pub start_time: i64,
pub end_time: i64,
}Expand description
Request for querying availability/free-busy information.
§Example
let request = AvailabilityRequest::builder()
.email("user@example.com")
.duration_minutes(30)
.start_time(1234567890)
.end_time(1234654290)
.build();Fields§
§emails: Vec<String>List of email addresses to check availability for.
duration_minutes: u32Duration of requested availability slots in minutes.
interval_minutes: Option<u32>Optional interval between availability slots in minutes. If not specified, defaults to the duration.
start_time: i64Unix timestamp indicating the start of the time range to check.
end_time: i64Unix timestamp indicating the end of the time range to check.
Implementations§
Trait Implementations§
Source§impl Clone for AvailabilityRequest
impl Clone for AvailabilityRequest
Source§fn clone(&self) -> AvailabilityRequest
fn clone(&self) -> AvailabilityRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AvailabilityRequest
impl Debug for AvailabilityRequest
Source§impl<'de> Deserialize<'de> for AvailabilityRequest
impl<'de> Deserialize<'de> for AvailabilityRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AvailabilityRequest
Source§impl PartialEq for AvailabilityRequest
impl PartialEq for AvailabilityRequest
Source§fn eq(&self, other: &AvailabilityRequest) -> bool
fn eq(&self, other: &AvailabilityRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AvailabilityRequest
impl Serialize for AvailabilityRequest
impl StructuralPartialEq for AvailabilityRequest
Auto Trait Implementations§
impl Freeze for AvailabilityRequest
impl RefUnwindSafe for AvailabilityRequest
impl Send for AvailabilityRequest
impl Sync for AvailabilityRequest
impl Unpin for AvailabilityRequest
impl UnsafeUnpin for AvailabilityRequest
impl UnwindSafe for AvailabilityRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more