pub enum RoleSpecification {
Named(String),
CurrentUser,
SessionUser,
}Variants§
Trait Implementations§
Source§impl Clone for RoleSpecification
impl Clone for RoleSpecification
Source§impl Debug for RoleSpecification
impl Debug for RoleSpecification
Source§impl<'de> Deserialize<'de> for RoleSpecification
impl<'de> Deserialize<'de> for RoleSpecification
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RoleSpecification
impl Display for RoleSpecification
impl Eq for RoleSpecification
Source§impl From<&str> for RoleSpecification
impl From<&str> for RoleSpecification
Source§impl From<RoleSpecification> for AclRoleSpecification
impl From<RoleSpecification> for AclRoleSpecification
Source§fn from(role: RoleSpecification) -> Self
fn from(role: RoleSpecification) -> Self
Converts to this type from the input type.
Source§impl From<String> for RoleSpecification
impl From<String> for RoleSpecification
Source§impl PartialEq for RoleSpecification
impl PartialEq for RoleSpecification
Source§impl Serialize for RoleSpecification
impl Serialize for RoleSpecification
impl StructuralPartialEq for RoleSpecification
Auto Trait Implementations§
impl Freeze for RoleSpecification
impl RefUnwindSafe for RoleSpecification
impl Send for RoleSpecification
impl Sync for RoleSpecification
impl Unpin for RoleSpecification
impl UnsafeUnpin for RoleSpecification
impl UnwindSafe for RoleSpecification
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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