pub struct AppointmentSegment {
pub duration_minutes: Option<Option<i32>>,
pub service_variation_id: Option<Option<String>>,
pub team_member_id: String,
pub service_variation_version: Option<Option<i64>>,
pub intermission_minutes: Option<i32>,
pub any_team_member: Option<bool>,
pub resource_ids: Option<Vec<String>>,
}Expand description
AppointmentSegment : Defines an appointment segment of a booking.
Fields§
§duration_minutes: Option<Option<i32>>The time span in minutes of an appointment segment.
service_variation_id: Option<Option<String>>The ID of the CatalogItemVariation object representing the service booked in this segment.
team_member_id: StringThe ID of the TeamMember object representing the team member booked in this segment.
service_variation_version: Option<Option<i64>>The current version of the item variation representing the service booked in this segment.
intermission_minutes: Option<i32>Time between the end of this segment and the beginning of the subsequent segment.
any_team_member: Option<bool>Whether the customer accepts any team member, instead of a specific one, to serve this segment.
resource_ids: Option<Vec<String>>The IDs of the seller-accessible resources used for this appointment segment.
Implementations§
Source§impl AppointmentSegment
impl AppointmentSegment
Sourcepub fn new(team_member_id: String) -> AppointmentSegment
pub fn new(team_member_id: String) -> AppointmentSegment
Defines an appointment segment of a booking.
Trait Implementations§
Source§impl Clone for AppointmentSegment
impl Clone for AppointmentSegment
Source§fn clone(&self) -> AppointmentSegment
fn clone(&self) -> AppointmentSegment
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 AppointmentSegment
impl Debug for AppointmentSegment
Source§impl Default for AppointmentSegment
impl Default for AppointmentSegment
Source§fn default() -> AppointmentSegment
fn default() -> AppointmentSegment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AppointmentSegment
impl<'de> Deserialize<'de> for AppointmentSegment
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 AppointmentSegment
impl PartialEq for AppointmentSegment
Source§impl Serialize for AppointmentSegment
impl Serialize for AppointmentSegment
impl StructuralPartialEq for AppointmentSegment
Auto Trait Implementations§
impl Freeze for AppointmentSegment
impl RefUnwindSafe for AppointmentSegment
impl Send for AppointmentSegment
impl Sync for AppointmentSegment
impl Unpin for AppointmentSegment
impl UnsafeUnpin for AppointmentSegment
impl UnwindSafe for AppointmentSegment
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