pub struct AccessAllowList {
pub emails: Vec<String>,
pub client_ids: Vec<String>,
}Expand description
--superadmin-access: Access emails and service-token client ids.
Fields§
§emails: Vec<String>§client_ids: Vec<String>Implementations§
Source§impl AccessAllowList
impl AccessAllowList
Sourcepub fn parse(list: &str) -> Result<AccessAllowList>
pub fn parse(list: &str) -> Result<AccessAllowList>
Comma-separated; an entry with @ is an email, else a service
token’s client id. Exact matches only: no wildcards or domains.
Sourcepub fn admits(&self, id: &Identity) -> bool
pub fn admits(&self, id: &Identity) -> bool
A user by email (case-insensitively); a service token by client id.
pub fn entries(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for AccessAllowList
impl Clone for AccessAllowList
Source§impl Debug for AccessAllowList
impl Debug for AccessAllowList
Source§impl Default for AccessAllowList
impl Default for AccessAllowList
impl Eq for AccessAllowList
Source§impl PartialEq for AccessAllowList
impl PartialEq for AccessAllowList
impl StructuralPartialEq for AccessAllowList
Auto Trait Implementations§
impl Freeze for AccessAllowList
impl RefUnwindSafe for AccessAllowList
impl Send for AccessAllowList
impl Sync for AccessAllowList
impl Unpin for AccessAllowList
impl UnsafeUnpin for AccessAllowList
impl UnwindSafe for AccessAllowList
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.