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 duplicate 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
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.