pub struct Property<'a> { /* private fields */ }
Expand description
A Property
contains a key-value pair which can have optionally several
parameters.
They are part of a component and define it. This can be used to create a new calendar property by either creating a wrapper type or just use it as it is.
Implementations§
Source§impl<'a> Property<'a>
impl<'a> Property<'a>
Sourcepub fn new<K, V>(key: K, value: V) -> Self
pub fn new<K, V>(key: K, value: V) -> Self
Creates a new property with the given key and value.
Sourcepub fn append(&mut self, parameters: Parameters<'a>)
pub fn append(&mut self, parameters: Parameters<'a>)
Adds several parameters at once to a property. For creating several
parameters at once, consult the documentation of the parameters!
macro.
Trait Implementations§
Source§impl<'a> From<Categories<'a>> for Property<'a>
impl<'a> From<Categories<'a>> for Property<'a>
Source§fn from(builder: Categories<'a>) -> Self
fn from(builder: Categories<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Conference<'a>> for Property<'a>
impl<'a> From<Conference<'a>> for Property<'a>
Source§fn from(builder: Conference<'a>) -> Self
fn from(builder: Conference<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Description<'a>> for Property<'a>
impl<'a> From<Description<'a>> for Property<'a>
Source§fn from(builder: Description<'a>) -> Self
fn from(builder: Description<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<FreeBusyTime<'a>> for Property<'a>
impl<'a> From<FreeBusyTime<'a>> for Property<'a>
Source§fn from(builder: FreeBusyTime<'a>) -> Self
fn from(builder: FreeBusyTime<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<LastModified<'a>> for Property<'a>
impl<'a> From<LastModified<'a>> for Property<'a>
Source§fn from(builder: LastModified<'a>) -> Self
fn from(builder: LastModified<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PercentComplete<'a>> for Property<'a>
impl<'a> From<PercentComplete<'a>> for Property<'a>
Source§fn from(builder: PercentComplete<'a>) -> Self
fn from(builder: PercentComplete<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<RecurrenceID<'a>> for Property<'a>
impl<'a> From<RecurrenceID<'a>> for Property<'a>
Source§fn from(builder: RecurrenceID<'a>) -> Self
fn from(builder: RecurrenceID<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<RefreshInterval<'a>> for Property<'a>
impl<'a> From<RefreshInterval<'a>> for Property<'a>
Source§fn from(builder: RefreshInterval<'a>) -> Self
fn from(builder: RefreshInterval<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<RequestStatus<'a>> for Property<'a>
impl<'a> From<RequestStatus<'a>> for Property<'a>
Source§fn from(builder: RequestStatus<'a>) -> Self
fn from(builder: RequestStatus<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TzOffsetFrom<'a>> for Property<'a>
impl<'a> From<TzOffsetFrom<'a>> for Property<'a>
Source§fn from(builder: TzOffsetFrom<'a>) -> Self
fn from(builder: TzOffsetFrom<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TzOffsetTo<'a>> for Property<'a>
impl<'a> From<TzOffsetTo<'a>> for Property<'a>
Source§fn from(builder: TzOffsetTo<'a>) -> Self
fn from(builder: TzOffsetTo<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Ord for Property<'a>
impl<'a> Ord for Property<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Property<'a>
impl<'a> PartialOrd for Property<'a>
impl<'a> Eq for Property<'a>
impl<'a> StructuralPartialEq for Property<'a>
Auto Trait Implementations§
impl<'a> Freeze for Property<'a>
impl<'a> RefUnwindSafe for Property<'a>
impl<'a> Send for Property<'a>
impl<'a> Sync for Property<'a>
impl<'a> Unpin for Property<'a>
impl<'a> UnwindSafe for Property<'a>
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