pub struct GalleryItem {
pub src: Url,
pub alt: String,
pub attrs: String,
}Expand description
One image in a GalleryShortcode.
Fields§
§src: UrlImage source URL. Flows through resolver before rendering.
alt: StringAlt text (from  syntax). Empty if author used bare path.
attrs: StringPipe-suffix media attributes verbatim (e.g. “cover top”,
“1.5:1 contain”). Empty if no pipe in the source.
The renderer parses this via moss_core::media::parse_media_attrs.
Trait Implementations§
Source§impl Clone for GalleryItem
impl Clone for GalleryItem
Source§fn clone(&self) -> GalleryItem
fn clone(&self) -> GalleryItem
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 GalleryItem
impl Debug for GalleryItem
Source§impl<'de> Deserialize<'de> for GalleryItem
impl<'de> Deserialize<'de> for GalleryItem
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 GalleryItem
Source§impl PartialEq for GalleryItem
impl PartialEq for GalleryItem
Source§impl Serialize for GalleryItem
impl Serialize for GalleryItem
impl StructuralPartialEq for GalleryItem
Auto Trait Implementations§
impl Freeze for GalleryItem
impl RefUnwindSafe for GalleryItem
impl Send for GalleryItem
impl Sync for GalleryItem
impl Unpin for GalleryItem
impl UnsafeUnpin for GalleryItem
impl UnwindSafe for GalleryItem
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.