pub struct Grant {
pub request_id: String,
pub client_id: String,
pub service_id: Option<String>,
pub permissions: Vec<String>,
}Expand description
Client to server: give client_id permissions. With service_id they apply to that service only;
without it they are tenant-wide, shorthand for every service of the tenant.
Permission names are tenant:read|write|admin, service:read|write|admin|resize and so on.
Fields§
§request_id: String§client_id: String§service_id: Option<String>§permissions: Vec<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grant
impl<'de> Deserialize<'de> for Grant
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
impl Eq for Grant
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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