Struct ofdb_entities::category::Category[][src]

pub struct Category {
    pub id: Id,
    pub tag: String,
}

Fields

id: Idtag: String

Implementations

impl Category[src]

pub fn name(&self) -> String[src]

impl Category[src]

pub const ID_NON_PROFIT: &'static str[src]

pub const ID_COMMERCIAL: &'static str[src]

pub const ID_EVENT: &'static str[src]

pub const TAG_NON_PROFIT: &'static str[src]

pub const TAG_COMMERCIAL: &'static str[src]

pub const TAG_EVENT: &'static str[src]

pub fn new_non_profit() -> Self[src]

pub fn new_commercial() -> Self[src]

pub fn new_event() -> Self[src]

pub fn split_from_tags(tags: Vec<String>) -> (Vec<String>, Vec<Category>)[src]

pub fn merge_ids_into_tags(ids: &[Id], tags: Vec<String>) -> Vec<String>[src]

Trait Implementations

impl Clone for Category[src]

impl Debug for Category[src]

impl Eq for Category[src]

impl PartialEq<Category> for Category[src]

impl StructuralEq for Category[src]

impl StructuralPartialEq for Category[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,