Enum repo_icons::RepoIconKind
source · pub enum RepoIconKind {
IconField(RepoBlob),
UserAvatar,
AppIcon {
homepage: Url,
},
SiteFavicon {
homepage: Url,
},
RepoFile(RepoBlob),
ReadmeImage,
SiteLogo {
homepage: Url,
},
}
Variants§
Trait Implementations§
source§impl Clone for RepoIconKind
impl Clone for RepoIconKind
source§fn clone(&self) -> RepoIconKind
fn clone(&self) -> RepoIconKind
Returns a copy of the value. Read more
1.0.0 · 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 RepoIconKind
impl Debug for RepoIconKind
source§impl<'de> Deserialize<'de> for RepoIconKind
impl<'de> Deserialize<'de> for RepoIconKind
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 Display for RepoIconKind
impl Display for RepoIconKind
source§impl Ord for RepoIconKind
impl Ord for RepoIconKind
source§fn cmp(&self, other: &RepoIconKind) -> Ordering
fn cmp(&self, other: &RepoIconKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<RepoIconKind> for RepoIconKind
impl PartialEq<RepoIconKind> for RepoIconKind
source§fn eq(&self, other: &RepoIconKind) -> bool
fn eq(&self, other: &RepoIconKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RepoIconKind> for RepoIconKind
impl PartialOrd<RepoIconKind> for RepoIconKind
source§fn partial_cmp(&self, other: &RepoIconKind) -> Option<Ordering>
fn partial_cmp(&self, other: &RepoIconKind) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for RepoIconKind
impl Serialize for RepoIconKind
impl Eq for RepoIconKind
impl StructuralEq for RepoIconKind
impl StructuralPartialEq for RepoIconKind
Auto Trait Implementations§
impl RefUnwindSafe for RepoIconKind
impl Send for RepoIconKind
impl Sync for RepoIconKind
impl Unpin for RepoIconKind
impl UnwindSafe for RepoIconKind
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.