pub struct Screenshot {
pub is_default: bool,
pub caption: Option<TranslatableString>,
pub images: Vec<Image>,
pub videos: Vec<Video>,
}Expand description
Defines a visual representation of the Component.
See <screenshots/>.
Fields§
§is_default: boolWhether 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§
Source§impl Clone for Screenshot
impl Clone for Screenshot
Source§fn clone(&self) -> Screenshot
fn clone(&self) -> Screenshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Screenshot
impl Debug for Screenshot
Source§impl Default for Screenshot
impl Default for Screenshot
Source§fn default() -> Screenshot
fn default() -> Screenshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Screenshot
impl<'de> Deserialize<'de> for Screenshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Screenshot
impl PartialEq for Screenshot
Source§fn eq(&self, other: &Screenshot) -> bool
fn eq(&self, other: &Screenshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Screenshot
impl Serialize for Screenshot
Source§impl TryFrom<&Element> for Screenshot
impl TryFrom<&Element> for Screenshot
impl StructuralPartialEq for Screenshot
Auto Trait Implementations§
impl Freeze for Screenshot
impl RefUnwindSafe for Screenshot
impl Send for Screenshot
impl Sync for Screenshot
impl Unpin for Screenshot
impl UnsafeUnpin for Screenshot
impl UnwindSafe for Screenshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more