pub struct Principal<State = Get> { /* private fields */ }Implementations§
Source§impl Principal<Get>
impl Principal<Get>
pub fn id(&self) -> Option<&str>
pub fn take_id(&mut self) -> String
pub fn ptype(&self) -> Option<&Type>
pub fn name(&self) -> Option<&str>
pub fn email(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
pub fn timezone(&self) -> Option<&str>
pub fn secret(&self) -> Option<&str>
pub fn picture(&self) -> Option<&str>
pub fn quota(&self) -> Option<u32>
pub fn capabilities(&self) -> Option<&[String]>
pub fn aliases(&self) -> Option<&[String]>
pub fn members(&self) -> Option<&[String]>
pub fn dkim(&self) -> Option<&DKIM>
pub fn acl(&self) -> Option<&AHashMap<String, Vec<ACL>>>
Source§impl Principal<Set>
impl Principal<Set>
pub fn name(&mut self, name: impl Into<String>) -> &mut Self
pub fn description( &mut self, description: Option<impl Into<String>>, ) -> &mut Self
pub fn email(&mut self, email: impl Into<String>) -> &mut Self
pub fn secret(&mut self, secret: impl Into<String>) -> &mut Self
pub fn timezone(&mut self, timezone: Option<impl Into<String>>) -> &mut Self
pub fn picture(&mut self, picture: Option<impl Into<String>>) -> &mut Self
pub fn quota(&mut self, quota: Option<u32>) -> &mut Self
pub fn ptype(&mut self, ptype: Type) -> &mut Self
pub fn dkim(&mut self, dkim: DKIM) -> &mut Self
pub fn acl(&mut self, acl: Option<AHashMap<String, Vec<ACL>>>) -> &mut Self
pub fn aliases<T, U>(&mut self, aliases: Option<T>) -> &mut Self
pub fn alias(&mut self, alias: &str, set: bool) -> &mut Self
pub fn capabilities<T, U>(&mut self, capabilities: Option<T>) -> &mut Self
pub fn members<T, U>(&mut self, members: Option<T>) -> &mut Self
pub fn member(&mut self, member: &str, set: bool) -> &mut Self
Trait Implementations§
Source§impl ChangesObject for Principal<Get>
impl ChangesObject for Principal<Get>
type ChangesResponse = ()
Source§impl ChangesObject for Principal<Set>
impl ChangesObject for Principal<Set>
type ChangesResponse = ()
Source§impl<'de, State> Deserialize<'de> for Principal<State>
impl<'de, State> Deserialize<'de> for Principal<State>
Source§fn 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
Source§impl QueryObject for Principal<Set>
impl QueryObject for Principal<Set>
Auto Trait Implementations§
impl<State> Freeze for Principal<State>
impl<State> RefUnwindSafe for Principal<State>where
State: RefUnwindSafe,
impl<State> Send for Principal<State>where
State: Send,
impl<State> Sync for Principal<State>where
State: Sync,
impl<State> Unpin for Principal<State>where
State: Unpin,
impl<State> UnwindSafe for Principal<State>where
State: UnwindSafe,
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