Struct lexoffice::model::posting_categories::PostingCategory[][src]

pub struct PostingCategory {
    pub id: ReadOnly<Uuid>,
    pub name: Option<String>,
    pub _type: Option<String>,
    pub contact_required: Option<bool>,
    pub split_allowed: Option<bool>,
    pub group_name: Option<String>,
}

Fields

id: ReadOnly<Uuid>

Unique id of the posting category.

name: Option<String>

Name of the posting category.

_type: Option<String>

Type of the posting category. Possible values are income for revenues and outgo for expenses.

contact_required: Option<bool>

Flags if a referenced contact is required for this posting category. Possible values are true and false.

split_allowed: Option<bool>

Flags if items with different tax rate percentages (e.g. 7% and 19%) are allowed for this posting category. Possible values are true and false.

group_name: Option<String>

Name of the top level posting category.

Implementations

impl PostingCategory[src]

pub fn builder() -> PostingCategoryBuilder<((), (), (), (), ())>[src]

Create a builder for building PostingCategory. On the builder, call .name(...)(optional), ._type(...)(optional), .contact_required(...)(optional), .split_allowed(...)(optional), .group_name(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of PostingCategory.

Trait Implementations

impl Clone for PostingCategory[src]

impl Debug for PostingCategory[src]

impl<'de> Deserialize<'de> for PostingCategory[src]

impl HasId for PostingCategory[src]

impl PartialEq<PostingCategory> for PostingCategory[src]

impl Serialize for PostingCategory[src]

impl StructuralPartialEq for PostingCategory[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

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>,