pub struct MarkdownAttachment {
pub filename: String,
pub url: String,
pub is_image: bool,
}Expand description
A single attachment reference found in a markdown document.
Fields§
§filename: StringBest-effort filename (from alt text or URL path).
url: StringAbsolute or relative URL as written in the markdown.
is_image: booltrue if the reference was an image (![]()), false for a link.
Trait Implementations§
Source§impl Clone for MarkdownAttachment
impl Clone for MarkdownAttachment
Source§fn clone(&self) -> MarkdownAttachment
fn clone(&self) -> MarkdownAttachment
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 MarkdownAttachment
impl Debug for MarkdownAttachment
Source§impl PartialEq for MarkdownAttachment
impl PartialEq for MarkdownAttachment
Source§fn eq(&self, other: &MarkdownAttachment) -> bool
fn eq(&self, other: &MarkdownAttachment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MarkdownAttachment
impl StructuralPartialEq for MarkdownAttachment
Auto Trait Implementations§
impl Freeze for MarkdownAttachment
impl RefUnwindSafe for MarkdownAttachment
impl Send for MarkdownAttachment
impl Sync for MarkdownAttachment
impl Unpin for MarkdownAttachment
impl UnsafeUnpin for MarkdownAttachment
impl UnwindSafe for MarkdownAttachment
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,
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.