pub struct TagKind(pub u64);Expand description
The tag kind
Tuple Fields§
§0: u64Implementations§
Source§impl TagKind
impl TagKind
Sourcepub const AUTHOR: Self
pub const AUTHOR: Self
The tag represents the author of the post (the creator of the image, not the uploader).
Sourcepub const METADATA: Self
pub const METADATA: Self
The tag represents some form of metadata, like the year the post was made.
Sourcepub fn is_general(self) -> bool
pub fn is_general(self) -> bool
Returns true if this tag kind is general.
Returns true if this tag kind is an author.
Sourcepub fn is_copyright(self) -> bool
pub fn is_copyright(self) -> bool
Retruns true if this tag is a copyright.
Sourcepub fn is_character(self) -> bool
pub fn is_character(self) -> bool
Returns true if this tag kind is a character.
Sourcepub fn is_metadata(self) -> bool
pub fn is_metadata(self) -> bool
Returns true if this tag kind is a metadata.
Sourcepub fn is_unknown(self) -> bool
pub fn is_unknown(self) -> bool
Returns true if the tag kind is unknown.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagKind
impl<'de> Deserialize<'de> for TagKind
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 Copy for TagKind
impl Eq for TagKind
impl StructuralPartialEq for TagKind
Auto Trait Implementations§
impl Freeze for TagKind
impl RefUnwindSafe for TagKind
impl Send for TagKind
impl Sync for TagKind
impl Unpin for TagKind
impl UnwindSafe for TagKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.