Struct nettu_scheduler_domain::Service[][src]

pub struct Service {
    pub id: ID,
    pub account_id: ID,
    pub users: Vec<ServiceResource>,
    pub metadata: Metadata,
}

Fields

id: IDaccount_id: IDusers: Vec<ServiceResource>metadata: Metadata

Implementations

impl Service[src]

pub fn new(account_id: ID) -> Self[src]

pub fn add_user(&mut self, user: ServiceResource)[src]

pub fn remove_user(&mut self, user_id: &ID) -> Option<ServiceResource>[src]

pub fn find_user(&self, user_id: &ID) -> Option<&ServiceResource>[src]

pub fn find_user_mut(&mut self, user_id: &ID) -> Option<&mut ServiceResource>[src]

Trait Implementations

impl Clone for Service[src]

impl Debug for Service[src]

impl Entity for Service[src]

impl Meta for Service[src]

Auto Trait Implementations

impl RefUnwindSafe for Service

impl Send for Service

impl Sync for Service

impl Unpin for Service

impl UnwindSafe for Service

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