pub enum ICalendarValue {
Show 20 variants
Binary(Vec<u8>),
Boolean(bool),
Uri(Uri),
PartialDateTime(Box<PartialDateTime>),
Duration(ICalendarDuration),
RecurrenceRule(Box<ICalendarRecurrenceRule>),
Period(ICalendarPeriod),
Float(f64),
Integer(i64),
Text(String),
CalendarScale(CalendarScale),
Method(ICalendarMethod),
Classification(ICalendarClassification),
Status(ICalendarStatus),
Transparency(ICalendarTransparency),
Action(ICalendarAction),
BusyType(ICalendarFreeBusyType),
ParticipantType(ICalendarParticipantType),
ResourceType(ICalendarResourceType),
Proximity(ICalendarProximityValue),
}
Variants§
Binary(Vec<u8>)
Boolean(bool)
Uri(Uri)
PartialDateTime(Box<PartialDateTime>)
Duration(ICalendarDuration)
RecurrenceRule(Box<ICalendarRecurrenceRule>)
Period(ICalendarPeriod)
Float(f64)
Integer(i64)
Text(String)
CalendarScale(CalendarScale)
Method(ICalendarMethod)
Classification(ICalendarClassification)
Status(ICalendarStatus)
Transparency(ICalendarTransparency)
Action(ICalendarAction)
BusyType(ICalendarFreeBusyType)
ParticipantType(ICalendarParticipantType)
ResourceType(ICalendarResourceType)
Proximity(ICalendarProximityValue)
Implementations§
Source§impl ICalendarValue
impl ICalendarValue
pub fn size(&self) -> usize
pub fn as_text(&self) -> Option<&str>
pub fn into_text(self) -> Option<Cow<'static, str>>
pub fn into_partial_date_time(self) -> Option<Box<PartialDateTime>>
pub fn as_integer(&self) -> Option<i64>
pub fn as_float(&self) -> Option<f64>
pub fn as_boolean(&self) -> Option<bool>
pub fn as_partial_date_time(&self) -> Option<&PartialDateTime>
pub fn as_binary(&self) -> Option<&[u8]>
Trait Implementations§
Source§impl Clone for ICalendarValue
impl Clone for ICalendarValue
Source§fn clone(&self) -> ICalendarValue
fn clone(&self) -> ICalendarValue
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 ICalendarValue
impl Debug for ICalendarValue
Source§impl<'de> Deserialize<'de> for ICalendarValue
impl<'de> Deserialize<'de> for ICalendarValue
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 From<&str> for ICalendarValue
impl From<&str> for ICalendarValue
Source§impl From<Box<ICalendarRecurrenceRule>> for ICalendarValue
impl From<Box<ICalendarRecurrenceRule>> for ICalendarValue
Source§fn from(value: Box<ICalendarRecurrenceRule>) -> Self
fn from(value: Box<ICalendarRecurrenceRule>) -> Self
Converts to this type from the input type.
Source§impl From<Box<PartialDateTime>> for ICalendarValue
impl From<Box<PartialDateTime>> for ICalendarValue
Source§fn from(value: Box<PartialDateTime>) -> Self
fn from(value: Box<PartialDateTime>) -> Self
Converts to this type from the input type.
Source§impl From<CalendarScale> for ICalendarValue
impl From<CalendarScale> for ICalendarValue
Source§fn from(value: CalendarScale) -> Self
fn from(value: CalendarScale) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarAction> for ICalendarValue
impl From<ICalendarAction> for ICalendarValue
Source§fn from(value: ICalendarAction) -> Self
fn from(value: ICalendarAction) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarClassification> for ICalendarValue
impl From<ICalendarClassification> for ICalendarValue
Source§fn from(value: ICalendarClassification) -> Self
fn from(value: ICalendarClassification) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarDuration> for ICalendarValue
impl From<ICalendarDuration> for ICalendarValue
Source§fn from(value: ICalendarDuration) -> Self
fn from(value: ICalendarDuration) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarFreeBusyType> for ICalendarValue
impl From<ICalendarFreeBusyType> for ICalendarValue
Source§fn from(value: ICalendarFreeBusyType) -> Self
fn from(value: ICalendarFreeBusyType) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarMethod> for ICalendarValue
impl From<ICalendarMethod> for ICalendarValue
Source§fn from(value: ICalendarMethod) -> Self
fn from(value: ICalendarMethod) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarParticipantType> for ICalendarValue
impl From<ICalendarParticipantType> for ICalendarValue
Source§fn from(value: ICalendarParticipantType) -> Self
fn from(value: ICalendarParticipantType) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarPeriod> for ICalendarValue
impl From<ICalendarPeriod> for ICalendarValue
Source§fn from(value: ICalendarPeriod) -> Self
fn from(value: ICalendarPeriod) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarProximityValue> for ICalendarValue
impl From<ICalendarProximityValue> for ICalendarValue
Source§fn from(value: ICalendarProximityValue) -> Self
fn from(value: ICalendarProximityValue) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarRecurrenceRule> for ICalendarValue
impl From<ICalendarRecurrenceRule> for ICalendarValue
Source§fn from(value: ICalendarRecurrenceRule) -> Self
fn from(value: ICalendarRecurrenceRule) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarResourceType> for ICalendarValue
impl From<ICalendarResourceType> for ICalendarValue
Source§fn from(value: ICalendarResourceType) -> Self
fn from(value: ICalendarResourceType) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarStatus> for ICalendarValue
impl From<ICalendarStatus> for ICalendarValue
Source§fn from(value: ICalendarStatus) -> Self
fn from(value: ICalendarStatus) -> Self
Converts to this type from the input type.
Source§impl From<ICalendarTransparency> for ICalendarValue
impl From<ICalendarTransparency> for ICalendarValue
Source§fn from(value: ICalendarTransparency) -> Self
fn from(value: ICalendarTransparency) -> Self
Converts to this type from the input type.
Source§impl From<PartialDateTime> for ICalendarValue
impl From<PartialDateTime> for ICalendarValue
Source§fn from(value: PartialDateTime) -> Self
fn from(value: PartialDateTime) -> Self
Converts to this type from the input type.
Source§impl From<String> for ICalendarValue
impl From<String> for ICalendarValue
Source§impl From<Uri> for ICalendarValue
impl From<Uri> for ICalendarValue
Source§impl From<bool> for ICalendarValue
impl From<bool> for ICalendarValue
Source§impl From<f64> for ICalendarValue
impl From<f64> for ICalendarValue
Source§impl From<i64> for ICalendarValue
impl From<i64> for ICalendarValue
Source§impl Hash for ICalendarValue
impl Hash for ICalendarValue
Source§impl Ord for ICalendarValue
impl Ord for ICalendarValue
Source§impl PartialEq for ICalendarValue
impl PartialEq for ICalendarValue
Source§impl PartialOrd for ICalendarValue
impl PartialOrd for ICalendarValue
Source§impl Serialize for ICalendarValue
impl Serialize for ICalendarValue
impl Eq for ICalendarValue
impl StructuralPartialEq for ICalendarValue
Auto Trait Implementations§
impl Freeze for ICalendarValue
impl RefUnwindSafe for ICalendarValue
impl Send for ICalendarValue
impl Sync for ICalendarValue
impl Unpin for ICalendarValue
impl UnwindSafe for ICalendarValue
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