pub struct UnreservedId(/* private fields */);
Expand description
An Id
that is not equal to __cedar
, as specified by RFC 52
Trait Implementations§
Source§impl AsRef<Id> for UnreservedId
impl AsRef<Id> for UnreservedId
Source§impl AsRef<str> for UnreservedId
impl AsRef<str> for UnreservedId
Source§impl Clone for UnreservedId
impl Clone for UnreservedId
Source§fn clone(&self) -> UnreservedId
fn clone(&self) -> UnreservedId
Returns a copy 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 UnreservedId
impl Debug for UnreservedId
Source§impl<'de> Deserialize<'de> for UnreservedId
impl<'de> Deserialize<'de> for UnreservedId
Deserialize a UnreservedId
using from_normalized_str
This deserialization implementation is used in the JSON schema format.
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 Display for UnreservedId
impl Display for UnreservedId
Source§impl From<UnreservedId> for Id
impl From<UnreservedId> for Id
Source§fn from(value: UnreservedId) -> Self
fn from(value: UnreservedId) -> Self
Converts to this type from the input type.
Source§impl From<UnreservedId> for Name
impl From<UnreservedId> for Name
Source§fn from(value: UnreservedId) -> Self
fn from(value: UnreservedId) -> Self
Converts to this type from the input type.
Source§impl From<Var> for UnreservedId
impl From<Var> for UnreservedId
Source§impl FromNormalizedStr for UnreservedId
impl FromNormalizedStr for UnreservedId
Source§fn describe_self() -> &'static str
fn describe_self() -> &'static str
Short string description of the
Self
type, to be used in error messages.
What are we trying to parse?Source§fn from_normalized_str(s: &str) -> Result<Self, ParseErrors>
fn from_normalized_str(s: &str) -> Result<Self, ParseErrors>
Create a
Self
by parsing a string, which is required to be normalized.
That is, the input is required to roundtrip with the Display
impl on Self
:
Self::from_normalized_str(x).to_string() == x
must hold. Read moreSource§impl FromStr for UnreservedId
impl FromStr for UnreservedId
Source§impl Hash for UnreservedId
impl Hash for UnreservedId
Source§impl Ord for UnreservedId
impl Ord for UnreservedId
Source§fn cmp(&self, other: &UnreservedId) -> Ordering
fn cmp(&self, other: &UnreservedId) -> 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
Source§impl PartialEq for UnreservedId
impl PartialEq for UnreservedId
Source§impl PartialOrd for UnreservedId
impl PartialOrd for UnreservedId
Source§impl Serialize for UnreservedId
impl Serialize for UnreservedId
Source§impl TryFrom<Id> for UnreservedId
impl TryFrom<Id> for UnreservedId
Source§impl TryFrom<Name> for UnreservedId
impl TryFrom<Name> for UnreservedId
impl Eq for UnreservedId
impl StructuralPartialEq for UnreservedId
Auto Trait Implementations§
impl Freeze for UnreservedId
impl RefUnwindSafe for UnreservedId
impl Send for UnreservedId
impl Sync for UnreservedId
impl Unpin for UnreservedId
impl UnwindSafe for UnreservedId
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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