Struct cedar_policy_core::ast::AnyId
source · pub struct AnyId(/* private fields */);
Expand description
Like Id
, except this specifically can contain Cedar reserved identifiers.
(It still can’t contain, for instance, spaces or characters like ‘+’.)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AnyId
impl<'de> Deserialize<'de> for AnyId
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 FromNormalizedStr for AnyId
impl FromNormalizedStr for AnyId
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 Ord for AnyId
impl Ord for AnyId
source§impl PartialEq for AnyId
impl PartialEq for AnyId
source§impl PartialOrd for AnyId
impl PartialOrd for AnyId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for AnyId
impl StructuralPartialEq for AnyId
Auto Trait Implementations§
impl Freeze for AnyId
impl RefUnwindSafe for AnyId
impl Send for AnyId
impl Sync for AnyId
impl Unpin for AnyId
impl UnwindSafe for AnyId
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> 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