pub struct ResourceScopeId(/* private fields */);Expand description
Validated, bounded identifier for a host-declared logical resource.
The identifier is serialized as its original string for wire compatibility
and redacted from std::fmt::Debug output to reduce accidental resource disclosure.
Implementations§
Source§impl ResourceScopeId
impl ResourceScopeId
Sourcepub fn new(value: impl Into<String>) -> Result<Self, ApiVocabularyError>
pub fn new(value: impl Into<String>) -> Result<Self, ApiVocabularyError>
Validates and constructs an opaque resource-scope identifier.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the identifier and returns its string value.
Trait Implementations§
Source§impl AsRef<str> for ResourceScopeId
impl AsRef<str> for ResourceScopeId
Source§impl Clone for ResourceScopeId
impl Clone for ResourceScopeId
Source§fn clone(&self) -> ResourceScopeId
fn clone(&self) -> ResourceScopeId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceScopeId
impl Debug for ResourceScopeId
Source§impl<'de> Deserialize<'de> for ResourceScopeId
impl<'de> Deserialize<'de> for ResourceScopeId
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
impl Eq for ResourceScopeId
Source§impl Hash for ResourceScopeId
impl Hash for ResourceScopeId
Source§impl Ord for ResourceScopeId
impl Ord for ResourceScopeId
Source§fn cmp(&self, other: &ResourceScopeId) -> Ordering
fn cmp(&self, other: &ResourceScopeId) -> Ordering
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
Source§impl PartialEq for ResourceScopeId
impl PartialEq for ResourceScopeId
Source§impl PartialOrd for ResourceScopeId
impl PartialOrd for ResourceScopeId
Source§impl Serialize for ResourceScopeId
impl Serialize for ResourceScopeId
impl StructuralPartialEq for ResourceScopeId
Auto Trait Implementations§
impl Freeze for ResourceScopeId
impl RefUnwindSafe for ResourceScopeId
impl Send for ResourceScopeId
impl Sync for ResourceScopeId
impl Unpin for ResourceScopeId
impl UnsafeUnpin for ResourceScopeId
impl UnwindSafe for ResourceScopeId
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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.