pub enum ResourceKey {
Show 15 variants
Root,
Space(SpaceKey),
App(AppKey),
Mechtron(MechtronKey),
FileSystem(FileSystemKey),
File(FileKey),
Database(DatabaseKey),
Authenticator(AuthenticatorKey),
Credentials(CredentialsKey),
Proxy(ProxyKey),
ArtifactBundleSeries(ArtifactBundleSeriesKey),
ArtifactBundle(ArtifactBundleKey),
Artifact(ArtifactKey),
UserBase(UserBaseKey),
User(UserKey),
}
Variants§
Root
Space(SpaceKey)
App(AppKey)
Mechtron(MechtronKey)
FileSystem(FileSystemKey)
File(FileKey)
Database(DatabaseKey)
Authenticator(AuthenticatorKey)
Credentials(CredentialsKey)
Proxy(ProxyKey)
ArtifactBundleSeries(ArtifactBundleSeriesKey)
ArtifactBundle(ArtifactBundleKey)
Artifact(ArtifactKey)
UserBase(UserBaseKey)
User(UserKey)
Implementations§
Source§impl ResourceKey
impl ResourceKey
pub fn ancestor_of_type( &self, resource_type: ResourceType, ) -> Result<ResourceKey, Error>
Source§impl ResourceKey
impl ResourceKey
Source§impl ResourceKey
impl ResourceKey
pub fn root() -> Self
pub fn resource_type(&self) -> ResourceType
pub fn parent(&self) -> Option<ResourceKey>
pub fn generate_address_tail(&self) -> String
pub fn string_bit(&self) -> String
pub fn string_prefix(&self) -> String
pub fn ancestors(&self) -> Vec<ResourceKey>
pub fn ancestors_not_root(&self) -> Vec<ResourceKey>
pub fn to_snake_case(&self) -> String
pub fn to_skewer_case(&self) -> String
Trait Implementations§
Source§impl Clone for ResourceKey
impl Clone for ResourceKey
Source§fn clone(&self) -> ResourceKey
fn clone(&self) -> ResourceKey
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 ResourceKey
impl Debug for ResourceKey
Source§impl<'de> Deserialize<'de> for ResourceKey
impl<'de> Deserialize<'de> for ResourceKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ResourceKey> for ResourceIdentifier
impl From<ResourceKey> for ResourceIdentifier
Source§fn from(key: ResourceKey) -> Self
fn from(key: ResourceKey) -> Self
Converts to this type from the input type.
Source§impl FromStr for ResourceKey
impl FromStr for ResourceKey
Source§impl Hash for ResourceKey
impl Hash for ResourceKey
Source§impl Into<ResourceKey> for AppKey
impl Into<ResourceKey> for AppKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for ArtifactBundleKey
impl Into<ResourceKey> for ArtifactBundleKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for ArtifactBundleSeriesKey
impl Into<ResourceKey> for ArtifactBundleSeriesKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for ArtifactKey
impl Into<ResourceKey> for ArtifactKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for AuthenticatorKey
impl Into<ResourceKey> for AuthenticatorKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for AuthenticatorParentKey
impl Into<ResourceKey> for AuthenticatorParentKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for CredentialsKey
impl Into<ResourceKey> for CredentialsKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for DatabaseKey
impl Into<ResourceKey> for DatabaseKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for FileKey
impl Into<ResourceKey> for FileKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for FileSystemKey
impl Into<ResourceKey> for FileSystemKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for FileSystemParentKey
impl Into<ResourceKey> for FileSystemParentKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for MechtronKey
impl Into<ResourceKey> for MechtronKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for ProxyKey
impl Into<ResourceKey> for ProxyKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for RootKey
impl Into<ResourceKey> for RootKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for SpaceKey
impl Into<ResourceKey> for SpaceKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for UserBaseKey
impl Into<ResourceKey> for UserBaseKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for UserBaseParentKey
impl Into<ResourceKey> for UserBaseParentKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl Into<ResourceKey> for UserKey
impl Into<ResourceKey> for UserKey
Source§fn into(self) -> ResourceKey
fn into(self) -> ResourceKey
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for ResourceKey
impl PartialEq for ResourceKey
Source§impl Serialize for ResourceKey
impl Serialize for ResourceKey
Source§impl ToString for ResourceKey
impl ToString for ResourceKey
Source§impl TryInto<AppKey> for ResourceKey
impl TryInto<AppKey> for ResourceKey
Source§impl TryInto<ArtifactBundleKey> for ResourceKey
impl TryInto<ArtifactBundleKey> for ResourceKey
Source§impl TryInto<ArtifactBundleSeriesKey> for ResourceKey
impl TryInto<ArtifactBundleSeriesKey> for ResourceKey
Source§impl TryInto<ArtifactKey> for ResourceKey
impl TryInto<ArtifactKey> for ResourceKey
Source§impl TryInto<AuthenticatorKey> for ResourceKey
impl TryInto<AuthenticatorKey> for ResourceKey
Source§impl TryInto<AuthenticatorParentKey> for ResourceKey
impl TryInto<AuthenticatorParentKey> for ResourceKey
Source§impl TryInto<CredentialsKey> for ResourceKey
impl TryInto<CredentialsKey> for ResourceKey
Source§impl TryInto<DatabaseKey> for ResourceKey
impl TryInto<DatabaseKey> for ResourceKey
Source§impl TryInto<FileKey> for ResourceKey
impl TryInto<FileKey> for ResourceKey
Source§impl TryInto<FileSystemKey> for ResourceKey
impl TryInto<FileSystemKey> for ResourceKey
Source§impl TryInto<FileSystemParentKey> for ResourceKey
impl TryInto<FileSystemParentKey> for ResourceKey
Source§impl TryInto<MechtronKey> for ResourceKey
impl TryInto<MechtronKey> for ResourceKey
Source§impl TryInto<ProxyKey> for ResourceKey
impl TryInto<ProxyKey> for ResourceKey
Source§impl TryInto<RootKey> for ResourceKey
impl TryInto<RootKey> for ResourceKey
Source§impl TryInto<SpaceKey> for ResourceKey
impl TryInto<SpaceKey> for ResourceKey
Source§impl TryInto<UserBaseKey> for ResourceKey
impl TryInto<UserBaseKey> for ResourceKey
Source§impl TryInto<UserBaseParentKey> for ResourceKey
impl TryInto<UserBaseParentKey> for ResourceKey
Source§impl TryInto<UserKey> for ResourceKey
impl TryInto<UserKey> for ResourceKey
impl Eq for ResourceKey
impl StructuralPartialEq for ResourceKey
Auto Trait Implementations§
impl Freeze for ResourceKey
impl RefUnwindSafe for ResourceKey
impl Send for ResourceKey
impl Sync for ResourceKey
impl Unpin for ResourceKey
impl UnwindSafe for ResourceKey
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