Enum nekoslife::Category [−][src]
pub enum Category { Nsfw(NsfwCategory), Sfw(SfwCategory), }
Variants
Nsfw(NsfwCategory)
A nsfw category.
Sfw(SfwCategory)
A sfw category.
Implementations
Gets the path to append after [BASEURL
]+/img/ to make a request to get an image / gif url.
Examples
assert_eq!(Category::from(SfwCategory::Waifu).to_url_path(), "waifu");
Trait Implementations
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Category
impl UnwindSafe for Category
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more