pub struct RoleConfig {
pub target: String,
pub scopes: Vec<String>,
pub select_user: Option<String>,
pub select_admin: Option<String>,
}Expand description
What one consumer may ask for. Nothing here can widen the authorisation —
scopes only ever narrows it, and the select_* fields merely name whom to
act as, which is not the same as being limited to them.
Fields§
§target: StringWhich dropbox/config/{name} authorisation to broker from.
scopes: Vec<String>A subset of the scopes the authorisation already holds. Empty means the full set it was granted.
select_user: Option<String>Team member id to act as, sent by the consumer as
Dropbox-API-Select-User. Only meaningful for a team authorisation.
select_admin: Option<String>Acts over team-owned content, sent as Dropbox-API-Select-Admin.
Trait Implementations§
Source§impl Clone for RoleConfig
impl Clone for RoleConfig
Source§impl Debug for RoleConfig
impl Debug for RoleConfig
Source§impl<'de> Deserialize<'de> for RoleConfig
impl<'de> Deserialize<'de> for RoleConfig
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
Auto Trait Implementations§
impl Freeze for RoleConfig
impl RefUnwindSafe for RoleConfig
impl Send for RoleConfig
impl Sync for RoleConfig
impl Unpin for RoleConfig
impl UnsafeUnpin for RoleConfig
impl UnwindSafe for RoleConfig
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