[−][src]Struct ics::components::Property
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
impl<'a> Property<'a>
[src]
pub fn new<K, V>(key: K, value: V) -> Self where
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
[src]
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
Creates a new property with the given key and value.
pub fn add<P>(&mut self, parameter: P) where
P: Into<Parameter<'a>>,
[src]
P: Into<Parameter<'a>>,
Adds a parameter to a property.
pub fn append(&mut self, parameters: Parameters<'a>)
[src]
Adds several parameters at once to a property. For creating several
parameters at once, consult the documentation of the parameters!
macro.
Trait Implementations
impl<'a> Clone for Property<'a>
[src]
impl<'a> Debug for Property<'a>
[src]
impl<'a> Display for Property<'a>
[src]
impl<'a> Eq for Property<'a>
[src]
impl<'a> From<Action<'a>> for Property<'a>
[src]
impl<'a> From<Attach<'a>> for Property<'a>
[src]
impl<'a> From<Attendee<'a>> for Property<'a>
[src]
impl<'a> From<CalScale<'a>> for Property<'a>
[src]
impl<'a> From<Categories<'a>> for Property<'a>
[src]
pub fn from(builder: Categories<'a>) -> Self
[src]
impl<'a> From<Class<'a>> for Property<'a>
[src]
impl<'a> From<Color<'a>> for Property<'a>
[src]
impl<'a> From<Comment<'a>> for Property<'a>
[src]
impl<'a> From<Completed<'a>> for Property<'a>
[src]
impl<'a> From<Conference<'a>> for Property<'a>
[src]
pub fn from(builder: Conference<'a>) -> Self
[src]
impl<'a> From<Contact<'a>> for Property<'a>
[src]
impl<'a> From<Created<'a>> for Property<'a>
[src]
impl<'a> From<Description<'a>> for Property<'a>
[src]
pub fn from(builder: Description<'a>) -> Self
[src]
impl<'a> From<DtEnd<'a>> for Property<'a>
[src]
impl<'a> From<DtStamp<'a>> for Property<'a>
[src]
impl<'a> From<DtStart<'a>> for Property<'a>
[src]
impl<'a> From<Due<'a>> for Property<'a>
[src]
impl<'a> From<Duration<'a>> for Property<'a>
[src]
impl<'a> From<ExDate<'a>> for Property<'a>
[src]
impl<'a> From<FreeBusyTime<'a>> for Property<'a>
[src]
pub fn from(builder: FreeBusyTime<'a>) -> Self
[src]
impl<'a> From<Geo<'a>> for Property<'a>
[src]
impl<'a> From<Image<'a>> for Property<'a>
[src]
impl<'a> From<LastModified<'a>> for Property<'a>
[src]
pub fn from(builder: LastModified<'a>) -> Self
[src]
impl<'a> From<Location<'a>> for Property<'a>
[src]
impl<'a> From<Method<'a>> for Property<'a>
[src]
impl<'a> From<Name<'a>> for Property<'a>
[src]
impl<'a> From<Organizer<'a>> for Property<'a>
[src]
impl<'a> From<PercentComplete<'a>> for Property<'a>
[src]
pub fn from(builder: PercentComplete<'a>) -> Self
[src]
impl<'a> From<Priority<'a>> for Property<'a>
[src]
impl<'a> From<ProdID<'a>> for Property<'a>
[src]
impl<'a> From<RDate<'a>> for Property<'a>
[src]
impl<'a> From<RRule<'a>> for Property<'a>
[src]
impl<'a> From<RecurrenceID<'a>> for Property<'a>
[src]
pub fn from(builder: RecurrenceID<'a>) -> Self
[src]
impl<'a> From<RefreshInterval<'a>> for Property<'a>
[src]
pub fn from(builder: RefreshInterval<'a>) -> Self
[src]
impl<'a> From<RelatedTo<'a>> for Property<'a>
[src]
impl<'a> From<Repeat<'a>> for Property<'a>
[src]
impl<'a> From<RequestStatus<'a>> for Property<'a>
[src]
pub fn from(builder: RequestStatus<'a>) -> Self
[src]
impl<'a> From<Resources<'a>> for Property<'a>
[src]
impl<'a> From<Sequence<'a>> for Property<'a>
[src]
impl<'a> From<Source<'a>> for Property<'a>
[src]
impl<'a> From<Status<'a>> for Property<'a>
[src]
impl<'a> From<Summary<'a>> for Property<'a>
[src]
impl<'a> From<Transp<'a>> for Property<'a>
[src]
impl<'a> From<Trigger<'a>> for Property<'a>
[src]
impl<'a> From<TzID<'a>> for Property<'a>
[src]
impl<'a> From<TzName<'a>> for Property<'a>
[src]
impl<'a> From<TzOffsetFrom<'a>> for Property<'a>
[src]
pub fn from(builder: TzOffsetFrom<'a>) -> Self
[src]
impl<'a> From<TzOffsetTo<'a>> for Property<'a>
[src]
pub fn from(builder: TzOffsetTo<'a>) -> Self
[src]
impl<'a> From<TzURL<'a>> for Property<'a>
[src]
impl<'a> From<UID<'a>> for Property<'a>
[src]
impl<'a> From<URL<'a>> for Property<'a>
[src]
impl<'a> From<Version<'a>> for Property<'a>
[src]
impl<'a> Hash for Property<'a>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Ord for Property<'a>
[src]
pub fn cmp(&self, other: &Property<'a>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'a> PartialEq<Property<'a>> for Property<'a>
[src]
pub fn eq(&self, other: &Property<'a>) -> bool
[src]
pub fn ne(&self, other: &Property<'a>) -> bool
[src]
impl<'a> PartialOrd<Property<'a>> for Property<'a>
[src]
pub fn partial_cmp(&self, other: &Property<'a>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Property<'a>) -> bool
[src]
pub fn le(&self, other: &Property<'a>) -> bool
[src]
pub fn gt(&self, other: &Property<'a>) -> bool
[src]
pub fn ge(&self, other: &Property<'a>) -> bool
[src]
impl<'a> StructuralEq for Property<'a>
[src]
impl<'a> StructuralPartialEq for Property<'a>
[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,