pub struct Person {
pub id: String,
pub name: String,
pub display_name: Option<String>,
pub email: Option<String>,
pub groups: Vec<String>,
pub attributes: BTreeMap<String, Value>,
}Expand description
A person record returned only by an authoritative directory.
Fields§
§id: StringStable directory identity.
name: StringCanonical account name.
display_name: Option<String>Human-readable name, when the directory has one.
email: Option<String>Email address, when the directory has one.
groups: Vec<String>Directory groups used by authorization policy.
attributes: BTreeMap<String, Value>Additional directory-owned attributes.
Trait Implementations§
impl Eq for Person
Source§impl FromValue for Person
impl FromValue for Person
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl Schema for Person
impl Schema for Person
impl StructuralPartialEq for Person
Auto Trait Implementations§
impl Freeze for Person
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnsafeUnpin for Person
impl UnwindSafe for Person
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