pub struct CatalogTimePeriod {
pub event: Option<String>,
}
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:
use square_api_client::models::CatalogTimePeriod;
CatalogTimePeriod {
event: Some(String::from("DTSTART:20190707T180000\nDURATION:P2H\nRRULE: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§
Source§impl Clone for CatalogTimePeriod
impl Clone for CatalogTimePeriod
Source§fn clone(&self) -> CatalogTimePeriod
fn clone(&self) -> CatalogTimePeriod
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CatalogTimePeriod
impl Debug for CatalogTimePeriod
Source§impl Default for CatalogTimePeriod
impl Default for CatalogTimePeriod
Source§fn default() -> CatalogTimePeriod
fn default() -> CatalogTimePeriod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogTimePeriod
impl<'de> Deserialize<'de> for CatalogTimePeriod
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 CatalogTimePeriod
impl PartialEq for CatalogTimePeriod
Source§impl Serialize for CatalogTimePeriod
impl Serialize for CatalogTimePeriod
impl Eq for CatalogTimePeriod
impl StructuralPartialEq for CatalogTimePeriod
Auto Trait Implementations§
impl Freeze for CatalogTimePeriod
impl RefUnwindSafe for CatalogTimePeriod
impl Send for CatalogTimePeriod
impl Sync for CatalogTimePeriod
impl Unpin for CatalogTimePeriod
impl UnwindSafe for CatalogTimePeriod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.