Struct service_manager::ServiceLabel
source · pub struct ServiceLabel {
pub qualifier: Option<String>,
pub organization: Option<String>,
pub application: String,
}
Expand description
Label describing the service (e.g. org.example.my_application
Fields§
§qualifier: Option<String>
Qualifier used for services tied to management systems like launchd
E.g. org
or com
organization: Option<String>
Organization associated with the service
E.g. example
application: String
Application name associated with the service
E.g. my_application
Implementations§
source§impl 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§
source§impl Clone for ServiceLabel
impl Clone for ServiceLabel
source§fn clone(&self) -> ServiceLabel
fn clone(&self) -> ServiceLabel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServiceLabel
impl Debug for ServiceLabel
source§impl Display for ServiceLabel
impl Display for ServiceLabel
source§impl FromStr for ServiceLabel
impl FromStr for ServiceLabel
source§impl Hash for ServiceLabel
impl Hash for ServiceLabel
source§impl PartialEq for ServiceLabel
impl PartialEq for ServiceLabel
source§fn 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 ==
.impl Eq for ServiceLabel
impl StructuralPartialEq for ServiceLabel
Auto Trait Implementations§
impl Freeze for ServiceLabel
impl RefUnwindSafe for ServiceLabel
impl Send for ServiceLabel
impl Sync for ServiceLabel
impl Unpin for ServiceLabel
impl UnwindSafe for ServiceLabel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more