Enum ComponentNameKind
pub enum ComponentNameKind<'a> {
Label(&'a KebabStr),
Constructor(&'a KebabStr),
Method(ResourceFunc<'a>),
Static(ResourceFunc<'a>),
Interface(InterfaceName<'a>),
Dependency(DependencyName<'a>),
Url(UrlName<'a>),
Hash(HashName<'a>),
AsyncLabel(&'a KebabStr),
AsyncMethod(ResourceFunc<'a>),
AsyncStatic(ResourceFunc<'a>),
}
Expand description
Created via ComponentName::kind
and classifies a name.
Variants§
Label(&'a KebabStr)
a-b-c
Constructor(&'a KebabStr)
[constructor]a-b
Method(ResourceFunc<'a>)
[method]a-b.c-d
Static(ResourceFunc<'a>)
[static]a-b.c-d
Interface(InterfaceName<'a>)
wasi:http/types@2.0
Dependency(DependencyName<'a>)
locked-dep=foo:bar/baz
Url(UrlName<'a>)
url=https://...
Hash(HashName<'a>)
integrity=sha256:...
AsyncLabel(&'a KebabStr)
[async]a-b-c
AsyncMethod(ResourceFunc<'a>)
[async method]a-b.c-d
AsyncStatic(ResourceFunc<'a>)
[async static]a-b.c-d
Trait Implementations§
§impl<'a> Clone for ComponentNameKind<'a>
impl<'a> Clone for ComponentNameKind<'a>
§fn clone(&self) -> ComponentNameKind<'a>
fn clone(&self) -> ComponentNameKind<'a>
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 more§impl<'a> Debug for ComponentNameKind<'a>
impl<'a> Debug for ComponentNameKind<'a>
§impl Hash for ComponentNameKind<'_>
impl Hash for ComponentNameKind<'_>
§impl Ord for ComponentNameKind<'_>
impl Ord for ComponentNameKind<'_>
§fn cmp(&self, other: &ComponentNameKind<'_>) -> Ordering
fn cmp(&self, other: &ComponentNameKind<'_>) -> Ordering
1.21.0 · 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
§impl PartialEq for ComponentNameKind<'_>
impl PartialEq for ComponentNameKind<'_>
§impl PartialOrd for ComponentNameKind<'_>
impl PartialOrd for ComponentNameKind<'_>
impl Eq for ComponentNameKind<'_>
Auto Trait Implementations§
impl<'a> Freeze for ComponentNameKind<'a>
impl<'a> RefUnwindSafe for ComponentNameKind<'a>
impl<'a> Send for ComponentNameKind<'a>
impl<'a> Sync for ComponentNameKind<'a>
impl<'a> Unpin for ComponentNameKind<'a>
impl<'a> UnwindSafe for ComponentNameKind<'a>
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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