[][src]Struct activitystreams::object::AnyImage

pub struct AnyImage { /* fields omitted */ }

Describes any kind of Image

Since Image is "concrete" in the ActivityStreams spec, but multiple fields in ObjectProperties require an "Image", this type acts as a filter to ensure only Images can be serialized or deserialized, but allows any adjacent fields through

Implementations

impl AnyImage[src]

pub fn from_concrete<T>(t: T) -> Result<Self, Error> where
    T: Object + Serialize
[src]

pub fn into_concrete<T>(self) -> Result<T, Error> where
    T: Object + DeserializeOwned
[src]

Trait Implementations

impl Clone for AnyImage[src]

impl Debug for AnyImage[src]

impl<'de> Deserialize<'de> for AnyImage[src]

impl From<AnyImage> for ObjectPropertiesIconTermEnum[src]

impl From<AnyImage> for ObjectPropertiesImageTermEnum[src]

impl Serialize for AnyImage[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.