[][src]Struct zenkit::types::Workspace

pub struct Workspace {
    pub id: ID,
    pub short_id: ShortId,
    pub uuid: UUID,
    pub name: String,
    pub description: Option<String>,
    pub is_default: bool,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub deprecated_at: Option<DateTime<Utc>>,
    pub background_id: Option<ID>,
    pub created_by: ID,
    pub lists: Vec<List>,
}

Workspace

Fields

id: ID

workspace id

short_id: ShortId

workspace short id

uuid: UUID

workspace uuid

name: String

workspace name

description: Option<String>

workspace description

is_default: bool

whether this is user's default workspace

created_at: DateTime<Utc>

The timestamp at which this element was created

updated_at: DateTime<Utc>

The timestamp at which this element was last updated

deprecated_at: Option<DateTime<Utc>>

The timestamp at which this element was deprecated. Is null if not deprecated

background_id: Option<ID>

workspace background theme

created_by: ID

workspace creator user id

lists: Vec<List>

lists in workspace

Implementations

impl Workspace[src]

pub fn get_description(&self) -> &str[src]

Returns the workspace description, or an empty string if none was provided

pub fn has_id(&self, id: &str) -> bool[src]

Returns true if the workspace has the id, uuid, shortId, or name of the parameter

pub fn get_id(&self) -> ID[src]

pub fn get_uuid(&self) -> &UUID[src]

Trait Implementations

impl Clone for Workspace[src]

impl Debug for Workspace[src]

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

impl Display for Workspace[src]

impl Serialize for Workspace[src]

impl ZKObjectID for Workspace[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> 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> ToString for T where
    T: Display + ?Sized
[src]

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.