Struct ics::components::Property
source · 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) -> Selfwhere
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
pub fn new<K, V>(key: K, value: V) -> Selfwhere
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
Creates a new property with the given key and value.
sourcepub fn add<P>(&mut self, parameter: P)where
P: Into<Parameter<'a>>,
pub fn add<P>(&mut self, parameter: P)where
P: Into<Parameter<'a>>,
Adds a parameter to a property.
sourcepub fn append(&mut self, parameter: Parameters<'a>)
pub fn append(&mut self, parameter: 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<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<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> PartialEq<Property<'a>> for Property<'a>
impl<'a> PartialEq<Property<'a>> for Property<'a>
source§impl<'a> PartialOrd<Property<'a>> for Property<'a>
impl<'a> PartialOrd<Property<'a>> for Property<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more