[][src]Struct ics::properties::Image

pub struct Image<'a> { /* fields omitted */ }

IMAGE Property

Newer properties that have a different value type than TEXT have to include the VALUE parameter. This property already contains the VALUE parameter, do not add this parameter manually. Depending on the constructor the value can be either URI or BINARY.

Implementations

impl<'a> Image<'a>[src]

pub fn uri<S>(value: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

Creates a new IMAGE Property with the given value. The value type is URI.

pub fn binary<S>(value: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

Creates a new IMAGE Property with the given value. The value type is BINARY which is why the ENCODING parameter with the value BASE64 is also added.

pub fn add<P>(&mut self, parameter: P) where
    P: Into<Parameter<'a>>, 
[src]

Adds a parameter to the property.

pub fn append(&mut self, parameters: Parameters<'a>)[src]

Adds several parameters at once to the property. For creating several parameters at once, consult the documentation of the parameters! macro.

Trait Implementations

impl<'a> Clone for Image<'a>[src]

impl<'a> Debug for Image<'a>[src]

impl<'a> Eq for Image<'a>[src]

impl<'a> From<Image<'a>> for Property<'a>[src]

impl<'a> Hash for Image<'a>[src]

impl<'a> Ord for Image<'a>[src]

impl<'a> PartialEq<Image<'a>> for Image<'a>[src]

impl<'a> PartialOrd<Image<'a>> for Image<'a>[src]

impl<'a> StructuralEq for Image<'a>[src]

impl<'a> StructuralPartialEq for Image<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Image<'a>

impl<'a> Send for Image<'a>

impl<'a> Sync for Image<'a>

impl<'a> Unpin for Image<'a>

impl<'a> UnwindSafe for Image<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.