Struct square_api_client::models::CatalogTimePeriod
source · Expand description
Represents a time period - either a single period or a repeating period.
Fields
event: Option<String>
An iCalendar (RFC 5545) event, which specifies the name, timing, duration and recurrence of this time period.
Example:
ⓘ
DTSTART:20190707T180000
DURATION:P2H
RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR
Only SUMMARY
, DTSTART
, DURATION
and RRULE
fields are supported. DTSTART
must be in
local (unzoned) time format. Note that while BEGIN:VEVENT
and END:VEVENT
is not required
in the request. The response will always include them.
Trait Implementations
sourceimpl Clone for CatalogTimePeriod
impl Clone for CatalogTimePeriod
sourcefn clone(&self) -> CatalogTimePeriod
fn clone(&self) -> CatalogTimePeriod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CatalogTimePeriod
impl Debug for CatalogTimePeriod
sourceimpl Default for CatalogTimePeriod
impl Default for CatalogTimePeriod
sourcefn default() -> CatalogTimePeriod
fn default() -> CatalogTimePeriod
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CatalogTimePeriod
impl<'de> Deserialize<'de> for CatalogTimePeriod
sourcefn 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
sourceimpl PartialEq<CatalogTimePeriod> for CatalogTimePeriod
impl PartialEq<CatalogTimePeriod> for CatalogTimePeriod
sourcefn eq(&self, other: &CatalogTimePeriod) -> bool
fn eq(&self, other: &CatalogTimePeriod) -> bool
sourceimpl Serialize for CatalogTimePeriod
impl Serialize for CatalogTimePeriod
impl Eq for CatalogTimePeriod
impl StructuralEq for CatalogTimePeriod
impl StructuralPartialEq for CatalogTimePeriod
Auto Trait Implementations
impl RefUnwindSafe for CatalogTimePeriod
impl Send for CatalogTimePeriod
impl Sync for CatalogTimePeriod
impl Unpin for CatalogTimePeriod
impl UnwindSafe for CatalogTimePeriod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.