pub struct Category {
pub id: Id,
pub tag: String,
}
Fields§
§id: Id
§tag: String
Implementations§
Source§impl Category
impl Category
pub const ID_NON_PROFIT: &'static str = "2cd00bebec0c48ba9db761da48678134"
pub const ID_COMMERCIAL: &'static str = "77b3c33a92554bcf8e8c2c86cedd6f6f"
pub const ID_EVENT: &'static str = "c2dc278a2d6a4b9b8a50cb606fc017ed"
pub const TAG_NON_PROFIT: &'static str = "non-profit"
pub const TAG_COMMERCIAL: &'static str = "commercial"
pub const TAG_EVENT: &'static str = "event"
pub fn new_non_profit() -> Self
pub fn new_commercial() -> Self
pub fn new_event() -> Self
Trait Implementations§
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more