[][src]Struct appstream::Screenshot

pub struct Screenshot {
    pub is_default: bool,
    pub caption: Option<TranslatableString>,
    pub images: Vec<Image>,
    pub videos: Vec<Video>,
}

Defines a visual representation of the Component. See <screenshots/>.

Fields

is_default: bool

Whether the current screenshot is the default one.

caption: Option<TranslatableString>

A translatable small description of the current screenshot.

images: Vec<Image>

The list of images the current screenshot has. It contains one image of kind ImageKind::Source, the rest are ImageKind::Thumbnail

videos: Vec<Video>

The list of videos the current screenshot has.

Trait Implementations

impl Clone for Screenshot[src]

impl Debug for Screenshot[src]

impl Default for Screenshot[src]

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

impl PartialEq<Screenshot> for Screenshot[src]

impl Serialize for Screenshot[src]

impl StructuralPartialEq for Screenshot[src]

impl<'_> TryFrom<&'_ Element> for Screenshot[src]

type Error = ParseError

The type returned in the event of a conversion error.

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.