pub struct AuthorizationDetail {
pub detail_type: String,
pub locations: Option<Vec<String>>,
pub actions: Option<Vec<String>>,
pub datatypes: Option<Vec<String>>,
pub identifier: Option<String>,
pub privileges: Option<Vec<String>>,
pub extra: BTreeMap<String, Value>,
}Expand description
A single RFC 9396 authorization_details entry.
type is required (renamed detail_type here to avoid the Rust
keyword). The remaining fields are optional per the RFC. API-specific
extension fields are captured in extra via serde flatten.
Fields§
§detail_type: String§locations: Option<Vec<String>>§actions: Option<Vec<String>>§datatypes: Option<Vec<String>>§identifier: Option<String>§privileges: Option<Vec<String>>§extra: BTreeMap<String, Value>API-specific fields not covered by the named RFC 9396 fields above. Subsetting checks treat these opaquely (exact equality).
Trait Implementations§
Source§impl Clone for AuthorizationDetail
impl Clone for AuthorizationDetail
Source§fn clone(&self) -> AuthorizationDetail
fn clone(&self) -> AuthorizationDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorizationDetail
impl Debug for AuthorizationDetail
Source§impl Default for AuthorizationDetail
impl Default for AuthorizationDetail
Source§fn default() -> AuthorizationDetail
fn default() -> AuthorizationDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorizationDetail
impl<'de> Deserialize<'de> for AuthorizationDetail
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 PartialEq for AuthorizationDetail
impl PartialEq for AuthorizationDetail
Source§impl Serialize for AuthorizationDetail
impl Serialize for AuthorizationDetail
impl StructuralPartialEq for AuthorizationDetail
Auto Trait Implementations§
impl Freeze for AuthorizationDetail
impl RefUnwindSafe for AuthorizationDetail
impl Send for AuthorizationDetail
impl Sync for AuthorizationDetail
impl Unpin for AuthorizationDetail
impl UnsafeUnpin for AuthorizationDetail
impl UnwindSafe for AuthorizationDetail
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