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: ID
account_id: ID
users: 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,