pub struct GalleryShortcode {
pub columns: Option<u32>,
pub classes: String,
pub items: Vec<GalleryItem>,
pub width: Option<String>,
}Expand description
Arguments for Shortcode::Gallery.
Fields§
§columns: Option<u32>Optional column count for --moss-gallery-columns CSS variable.
classes: StringExtra CSS classes for the wrapping <div> (from {.foo .bar}).
items: Vec<GalleryItem>Each gallery image’s src + alt + media attrs.
width: Option<String>Spec § P9 width attribute: body | wide | page | screen (with
full aliased to screen). None means the author did not set
a width — the emitter omits data-width so the HTML stays sparse.
Trait Implementations§
Source§impl Clone for GalleryShortcode
impl Clone for GalleryShortcode
Source§fn clone(&self) -> GalleryShortcode
fn clone(&self) -> GalleryShortcode
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 GalleryShortcode
impl Debug for GalleryShortcode
Source§impl Default for GalleryShortcode
impl Default for GalleryShortcode
Source§fn default() -> GalleryShortcode
fn default() -> GalleryShortcode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GalleryShortcode
impl<'de> Deserialize<'de> for GalleryShortcode
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
impl Eq for GalleryShortcode
Source§impl PartialEq for GalleryShortcode
impl PartialEq for GalleryShortcode
Source§impl Serialize for GalleryShortcode
impl Serialize for GalleryShortcode
impl StructuralPartialEq for GalleryShortcode
Auto Trait Implementations§
impl Freeze for GalleryShortcode
impl RefUnwindSafe for GalleryShortcode
impl Send for GalleryShortcode
impl Sync for GalleryShortcode
impl Unpin for GalleryShortcode
impl UnsafeUnpin for GalleryShortcode
impl UnwindSafe for GalleryShortcode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.