pub struct FixedSlotCapacityQuery {
pub capacity_types: Option<Vec<CapacityType>>,
pub slot_duration: Option<f64>,
pub start_date_time: String,
pub end_date_time: String,
}Expand description
FixedSlotCapacityQuery : Request schema for the getFixedSlotCapacity operation. This schema is used to define the time range, capacity types and slot duration which are being queried.
Fields§
§capacity_types: Option<Vec<CapacityType>>An array of capacity types which are being requested. Default value is [SCHEDULED_CAPACITY].
slot_duration: Option<f64>Size in which slots are being requested. This value should be a multiple of 5 and fall in the range: 5 <= slotDuration <= 360.
start_date_time: StringStart date time from which the capacity slots are being requested in ISO 8601 format.
end_date_time: StringEnd date time up to which the capacity slots are being requested in ISO 8601 format.
Implementations§
Source§impl FixedSlotCapacityQuery
impl FixedSlotCapacityQuery
Sourcepub fn new(
start_date_time: String,
end_date_time: String,
) -> FixedSlotCapacityQuery
pub fn new( start_date_time: String, end_date_time: String, ) -> FixedSlotCapacityQuery
Request schema for the getFixedSlotCapacity operation. This schema is used to define the time range, capacity types and slot duration which are being queried.
Trait Implementations§
Source§impl Clone for FixedSlotCapacityQuery
impl Clone for FixedSlotCapacityQuery
Source§fn clone(&self) -> FixedSlotCapacityQuery
fn clone(&self) -> FixedSlotCapacityQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 FixedSlotCapacityQuery
impl Debug for FixedSlotCapacityQuery
Source§impl Default for FixedSlotCapacityQuery
impl Default for FixedSlotCapacityQuery
Source§fn default() -> FixedSlotCapacityQuery
fn default() -> FixedSlotCapacityQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FixedSlotCapacityQuery
impl<'de> Deserialize<'de> for FixedSlotCapacityQuery
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
Source§impl PartialEq for FixedSlotCapacityQuery
impl PartialEq for FixedSlotCapacityQuery
Source§impl Serialize for FixedSlotCapacityQuery
impl Serialize for FixedSlotCapacityQuery
impl StructuralPartialEq for FixedSlotCapacityQuery
Auto Trait Implementations§
impl Freeze for FixedSlotCapacityQuery
impl RefUnwindSafe for FixedSlotCapacityQuery
impl Send for FixedSlotCapacityQuery
impl Sync for FixedSlotCapacityQuery
impl Unpin for FixedSlotCapacityQuery
impl UnwindSafe for FixedSlotCapacityQuery
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