Struct Property

Source
pub struct Property {
    pub name: String,
    pub params: BTreeMap<String, String>,
    pub raw_value: String,
    pub prop_group: Option<String>,
}

Fields§

§name: String

Key in component.

§params: BTreeMap<String, String>

Parameters.

§raw_value: String

Value as unparsed string.

§prop_group: Option<String>

Property group. E.g. a contentline like foo.FN:Markus would result in the group being "foo".

Implementations§

Source§

impl Property

Source

pub fn new<N, V>(name: N, value: V) -> Property
where N: Into<String>, V: AsRef<str>,

Create property from unescaped string.

Source

pub fn value_as_string(&self) -> String

Get value as unescaped string.

Trait Implementations§

Source§

impl Clone for Property

Source§

fn clone(&self) -> Property

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Property

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Property> for Adr

Source§

fn from(p: Property) -> Adr

Converts to this type from the input type.
Source§

impl From<Property> for Anniversary

Source§

fn from(p: Property) -> Anniversary

Converts to this type from the input type.
Source§

impl From<Property> for BDay

Source§

fn from(p: Property) -> BDay

Converts to this type from the input type.
Source§

impl From<Property> for Categories

Source§

fn from(p: Property) -> Categories

Converts to this type from the input type.
Source§

impl From<Property> for Category

Source§

fn from(p: Property) -> Category

Converts to this type from the input type.
Source§

impl From<Property> for Class

Source§

fn from(p: Property) -> Class

Converts to this type from the input type.
Source§

impl From<Property> for ClientPidMap

Source§

fn from(p: Property) -> ClientPidMap

Converts to this type from the input type.
Source§

impl From<Property> for Description

Source§

fn from(p: Property) -> Description

Converts to this type from the input type.
Source§

impl From<Property> for Dtend

Source§

fn from(p: Property) -> Dtend

Converts to this type from the input type.
Source§

impl From<Property> for Dtstamp

Source§

fn from(p: Property) -> Dtstamp

Converts to this type from the input type.
Source§

impl From<Property> for Dtstart

Source§

fn from(p: Property) -> Dtstart

Converts to this type from the input type.
Source§

impl From<Property> for Email

Source§

fn from(p: Property) -> Email

Converts to this type from the input type.
Source§

impl From<Property> for FullName

Source§

fn from(p: Property) -> FullName

Converts to this type from the input type.
Source§

impl From<Property> for Gender

Source§

fn from(p: Property) -> Gender

Converts to this type from the input type.
Source§

impl From<Property> for Geo

Source§

fn from(p: Property) -> Geo

Converts to this type from the input type.
Source§

impl From<Property> for IMPP

Source§

fn from(p: Property) -> IMPP

Converts to this type from the input type.
Source§

impl From<Property> for Key

Source§

fn from(p: Property) -> Key

Converts to this type from the input type.
Source§

impl From<Property> for Lang

Source§

fn from(p: Property) -> Lang

Converts to this type from the input type.
Source§

impl From<Property> for Location

Source§

fn from(p: Property) -> Location

Converts to this type from the input type.
Source§

fn from(p: Property) -> Logo

Converts to this type from the input type.
Source§

impl From<Property> for Member

Source§

fn from(p: Property) -> Member

Converts to this type from the input type.
Source§

impl From<Property> for Name

Source§

fn from(p: Property) -> Name

Converts to this type from the input type.
Source§

impl From<Property> for NickName

Source§

fn from(p: Property) -> NickName

Converts to this type from the input type.
Source§

impl From<Property> for Note

Source§

fn from(p: Property) -> Note

Converts to this type from the input type.
Source§

impl From<Property> for Organization

Source§

fn from(p: Property) -> Organization

Converts to this type from the input type.
Source§

impl From<Property> for PhoneNumber

Source§

fn from(p: Property) -> PhoneNumber

Converts to this type from the input type.
Source§

impl From<Property> for Photo

Source§

fn from(p: Property) -> Photo

Converts to this type from the input type.
Source§

impl From<Property> for Prodid

Source§

fn from(p: Property) -> Prodid

Converts to this type from the input type.
Source§

impl From<Property> for Proid

Source§

fn from(p: Property) -> Proid

Converts to this type from the input type.
Source§

fn from(p: Property) -> Related

Converts to this type from the input type.
Source§

impl From<Property> for Rev

Source§

fn from(p: Property) -> Rev

Converts to this type from the input type.
Source§

impl From<Property> for Rrule

Source§

fn from(p: Property) -> Rrule

Converts to this type from the input type.
Source§

impl From<Property> for Sound

Source§

fn from(p: Property) -> Sound

Converts to this type from the input type.
Source§

impl From<Property> for Summary

Source§

fn from(p: Property) -> Summary

Converts to this type from the input type.
Source§

impl From<Property> for Tel

Source§

fn from(p: Property) -> Tel

Converts to this type from the input type.
Source§

impl From<Property> for Title

Source§

fn from(p: Property) -> Title

Converts to this type from the input type.
Source§

impl From<Property> for Transp

Source§

fn from(p: Property) -> Transp

Converts to this type from the input type.
Source§

impl From<Property> for Tz

Source§

fn from(p: Property) -> Tz

Converts to this type from the input type.
Source§

impl From<Property> for Uid

Source§

fn from(p: Property) -> Uid

Converts to this type from the input type.
Source§

impl From<Property> for Uid

Source§

fn from(p: Property) -> Uid

Converts to this type from the input type.
Source§

impl From<Property> for Url

Source§

fn from(p: Property) -> Url

Converts to this type from the input type.
Source§

impl From<Property> for Url

Source§

fn from(p: Property) -> Url

Converts to this type from the input type.
Source§

impl From<Property> for Version

Source§

fn from(p: Property) -> Version

Converts to this type from the input type.
Source§

impl From<Property> for Version

Source§

fn from(p: Property) -> Version

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.