Struct repo_icons::ReadmeImage
source · [−]pub struct ReadmeImage {
pub src: Url,
pub in_primary_heading: bool,
pub edge_of_primary_heading: bool,
pub keyword_mentions: HashSet<KeywordMention>,
pub sourced_from_repo: bool,
pub links_to: Option<ProjectLink>,
pub is_align_center: bool,
pub has_size_attrs: bool,
}
Fields
src: Url
in_primary_heading: bool
whether the image was in the primary markdown heading
edge_of_primary_heading: bool
whether the image was the first/last one in the heading
keyword_mentions: HashSet<KeywordMention>
whether the image mentions a keyword in its src / alt text
sourced_from_repo: bool
whether the image src points to a file inside of the repo
links_to: Option<ProjectLink>
whether the image has links to the projects
is_align_center: bool
whether the image has the CSS “align: center”
has_size_attrs: bool
whether the image has height or width attributes
Implementations
sourceimpl ReadmeImage
impl ReadmeImage
Trait Implementations
sourceimpl Debug for ReadmeImage
impl Debug for ReadmeImage
sourceimpl<'de> Deserialize<'de> for ReadmeImage
impl<'de> Deserialize<'de> for ReadmeImage
sourcefn 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
sourceimpl Ord for ReadmeImage
impl Ord for ReadmeImage
sourceimpl PartialEq<ReadmeImage> for ReadmeImage
impl PartialEq<ReadmeImage> for ReadmeImage
sourcefn eq(&self, other: &ReadmeImage) -> bool
fn eq(&self, other: &ReadmeImage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReadmeImage) -> bool
fn ne(&self, other: &ReadmeImage) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ReadmeImage> for ReadmeImage
impl PartialOrd<ReadmeImage> for ReadmeImage
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ReadmeImage
impl Serialize for ReadmeImage
impl Eq for ReadmeImage
impl StructuralEq for ReadmeImage
impl StructuralPartialEq for ReadmeImage
Auto Trait Implementations
impl RefUnwindSafe for ReadmeImage
impl Send for ReadmeImage
impl Sync for ReadmeImage
impl Unpin for ReadmeImage
impl UnwindSafe for ReadmeImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more