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§
Source§impl<'a> Clone for ComponentNameKind<'a>
impl<'a> Clone for ComponentNameKind<'a>
Source§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 moreSource§impl<'a> Debug for ComponentNameKind<'a>
impl<'a> Debug for ComponentNameKind<'a>
Source§impl Hash for ComponentNameKind<'_>
impl Hash for ComponentNameKind<'_>
Source§impl Ord for ComponentNameKind<'_>
impl Ord for ComponentNameKind<'_>
Source§impl PartialEq for ComponentNameKind<'_>
impl PartialEq for ComponentNameKind<'_>
Source§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