Struct cedar_policy::EntityNamespace
source · pub struct EntityNamespace(/* private fields */);
Expand description
Represents a namespace.
An EntityNamespace
can can be constructed using
EntityNamespace::from_str
or by calling parse()
on a string.
This can fail, so it is important to properly handle an Err
result.
let id : Result<EntityNamespace, _> = "My::Name::Space".parse();
Trait Implementations§
source§impl Clone for EntityNamespace
impl Clone for EntityNamespace
source§fn clone(&self) -> EntityNamespace
fn clone(&self) -> EntityNamespace
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 EntityNamespace
impl Debug for EntityNamespace
source§impl Display for EntityNamespace
impl Display for EntityNamespace
source§impl FromStr for EntityNamespace
impl FromStr for EntityNamespace
This FromStr
implementation requires the normalized representation of the
namespace. See https://github.com/cedar-policy/rfcs/pull/9/.
source§impl Hash for EntityNamespace
impl Hash for EntityNamespace
source§impl Ord for EntityNamespace
impl Ord for EntityNamespace
source§fn cmp(&self, other: &EntityNamespace) -> Ordering
fn cmp(&self, other: &EntityNamespace) -> 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 EntityNamespace
impl PartialEq for EntityNamespace
source§fn eq(&self, other: &EntityNamespace) -> bool
fn eq(&self, other: &EntityNamespace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EntityNamespace
impl PartialOrd for EntityNamespace
source§fn partial_cmp(&self, other: &EntityNamespace) -> Option<Ordering>
fn partial_cmp(&self, other: &EntityNamespace) -> Option<Ordering>
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 EntityNamespace
impl StructuralPartialEq for EntityNamespace
Auto Trait Implementations§
impl Freeze for EntityNamespace
impl RefUnwindSafe for EntityNamespace
impl Send for EntityNamespace
impl Sync for EntityNamespace
impl Unpin for EntityNamespace
impl UnwindSafe for EntityNamespace
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.