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]
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
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,