pub struct PolicyUser(/* private fields */);Expand description
A uuid backed user identifier.
This crates requires your users to be identifiable by a uuid.
Implementations§
Trait Implementations§
Source§impl AsRef<Uuid> for PolicyUser
impl AsRef<Uuid> for PolicyUser
Source§impl Clone for PolicyUser
impl Clone for PolicyUser
Source§fn clone(&self) -> PolicyUser
fn clone(&self) -> PolicyUser
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 PolicyUser
impl Debug for PolicyUser
Source§impl Display for PolicyUser
impl Display for PolicyUser
Source§impl From<Uuid> for PolicyUser
impl From<Uuid> for PolicyUser
Source§impl FromStr for PolicyUser
impl FromStr for PolicyUser
Source§impl Hash for PolicyUser
impl Hash for PolicyUser
Source§impl PartialEq for PolicyUser
impl PartialEq for PolicyUser
Source§impl ToCasbinString for PolicyUser
impl ToCasbinString for PolicyUser
fn to_casbin_string(self) -> String
impl Eq for PolicyUser
impl IsSubject for PolicyUser
impl StructuralPartialEq for PolicyUser
Auto Trait Implementations§
impl Freeze for PolicyUser
impl RefUnwindSafe for PolicyUser
impl Send for PolicyUser
impl Sync for PolicyUser
impl Unpin for PolicyUser
impl UnwindSafe for PolicyUser
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§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