pub struct AppKey { /* private fields */ }Expand description
The key a choice is made under: the workspace the app runs in and its package id, so the same app in another workspace sees none of it and no app reaches another’s choices.
Implementations§
Source§impl AppKey
impl AppKey
Sourcepub fn new(workspace: &str, app: &str) -> Option<Self>
pub fn new(workspace: &str, app: &str) -> Option<Self>
The key for app running in workspace, or None when either is not a name the entries
can carry as one path component (a workspace id is letters, digits and -; a package id
adds . and _, and does not start with .).
pub fn workspace(&self) -> &str
pub fn app(&self) -> &str
Trait Implementations§
impl Eq for AppKey
Source§impl Ord for AppKey
impl Ord for AppKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for AppKey
impl PartialOrd for AppKey
impl StructuralPartialEq for AppKey
Auto Trait Implementations§
impl Forget for AppKey
impl Freeze for AppKey
impl Move for AppKey
impl RefUnwindSafe for AppKey
impl Send for AppKey
impl Sync for AppKey
impl Unpin for AppKey
impl UnsafeUnpin for AppKey
impl UnwindSafe for AppKey
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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