Enum fs_mistrust::TrustedGroup
source · [−]Expand description
A group that we can be configured to trust.
Serde support
See the serde support
section in TrustedUser
. Additionally,
you can represent TrustedGroup::SelfNamed
with the string ":username"
or the map { special = ":username" }
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
None
We won’t treat any group as trusted
SelfNamed
We’ll treat any group with same name as the current user as trusted.
If there is no such group, we trust no group.
(This is the default.)
Id(u32)
We’ll treat a specific group ID as trusted.
Name(OsString)
We’ll treat a group with a specific name as trusted.
If there is no such group, we’ll report an error.
Trait Implementations
sourceimpl Clone for TrustedGroup
impl Clone for TrustedGroup
sourcefn clone(&self) -> TrustedGroup
fn clone(&self) -> TrustedGroup
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TrustedGroup
impl Debug for TrustedGroup
sourceimpl Default for TrustedGroup
impl Default for TrustedGroup
sourceimpl<'de> Deserialize<'de> for TrustedGroup
impl<'de> Deserialize<'de> for TrustedGroup
sourcefn 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
sourceimpl From<&'_ OsStr> for TrustedGroup
impl From<&'_ OsStr> for TrustedGroup
sourcefn from(val: &OsStr) -> TrustedGroup
fn from(val: &OsStr) -> TrustedGroup
Converts to this type from the input type.
sourceimpl From<&'_ str> for TrustedGroup
impl From<&'_ str> for TrustedGroup
sourcefn from(val: &str) -> TrustedGroup
fn from(val: &str) -> TrustedGroup
Converts to this type from the input type.
sourceimpl From<OsString> for TrustedGroup
impl From<OsString> for TrustedGroup
sourcefn from(val: OsString) -> TrustedGroup
fn from(val: OsString) -> TrustedGroup
Converts to this type from the input type.
sourceimpl From<String> for TrustedGroup
impl From<String> for TrustedGroup
sourcefn from(val: String) -> TrustedGroup
fn from(val: String) -> TrustedGroup
Converts to this type from the input type.
sourceimpl From<u32> for TrustedGroup
impl From<u32> for TrustedGroup
sourceimpl PartialEq<TrustedGroup> for TrustedGroup
impl PartialEq<TrustedGroup> for TrustedGroup
sourcefn eq(&self, other: &TrustedGroup) -> bool
fn eq(&self, other: &TrustedGroup) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TrustedGroup) -> bool
fn ne(&self, other: &TrustedGroup) -> bool
This method tests for !=
.
sourceimpl Serialize for TrustedGroup
impl Serialize for TrustedGroup
impl Eq for TrustedGroup
impl StructuralEq for TrustedGroup
impl StructuralPartialEq for TrustedGroup
Auto Trait Implementations
impl RefUnwindSafe for TrustedGroup
impl Send for TrustedGroup
impl Sync for TrustedGroup
impl Unpin for TrustedGroup
impl UnwindSafe for TrustedGroup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more