[−][src]Struct ics::properties::Image
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]
S: Into<Cow<'a, str>>,
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]
S: Into<Cow<'a, str>>,
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]
P: Into<Parameter<'a>>,
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]
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 Image<'a>
[src]
pub fn cmp(&self, other: &Image<'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<Image<'a>> for Image<'a>
[src]
impl<'a> PartialOrd<Image<'a>> for Image<'a>
[src]
pub fn partial_cmp(&self, other: &Image<'a>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Image<'a>) -> bool
[src]
pub fn le(&self, other: &Image<'a>) -> bool
[src]
pub fn gt(&self, other: &Image<'a>) -> bool
[src]
pub fn ge(&self, other: &Image<'a>) -> bool
[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]
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, 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>,