Struct service_manager::ServiceLabel
source · [−]pub struct ServiceLabel {
pub qualifier: String,
pub organization: String,
pub application: String,
}Expand description
Label describing the service (e.g. org.example.my_application
Fields
qualifier: StringQualifier used for services tied to management systems like launchd
E.g. org or com
organization: StringOrganization associated with the service
E.g. example
application: StringApplication name associated with the service
E.g. my_application
Implementations
sourceimpl ServiceLabel
impl ServiceLabel
sourcepub fn to_qualified_name(&self) -> String
pub fn to_qualified_name(&self) -> String
Produces a fully-qualified name in the form of {qualifier}.{organization}.{application}
sourcepub fn to_script_name(&self) -> String
pub fn to_script_name(&self) -> String
Produces a script name using the organization and application
in the form of {organization}-{application}
Trait Implementations
sourceimpl Clone for ServiceLabel
impl Clone for ServiceLabel
sourcefn clone(&self) -> ServiceLabel
fn clone(&self) -> ServiceLabel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ServiceLabel
impl Debug for ServiceLabel
sourceimpl Display for ServiceLabel
impl Display for ServiceLabel
sourceimpl FromStr for ServiceLabel
impl FromStr for ServiceLabel
sourceimpl Hash for ServiceLabel
impl Hash for ServiceLabel
sourceimpl PartialEq<ServiceLabel> for ServiceLabel
impl PartialEq<ServiceLabel> for ServiceLabel
sourcefn eq(&self, other: &ServiceLabel) -> bool
fn eq(&self, other: &ServiceLabel) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ServiceLabel) -> bool
fn ne(&self, other: &ServiceLabel) -> bool
This method tests for !=.
impl Eq for ServiceLabel
impl StructuralEq for ServiceLabel
impl StructuralPartialEq for ServiceLabel
Auto Trait Implementations
impl RefUnwindSafe for ServiceLabel
impl Send for ServiceLabel
impl Sync for ServiceLabel
impl Unpin for ServiceLabel
impl UnwindSafe for ServiceLabel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more