Struct nakadi_types::misc::AuthorizationAttribute [−][src]
pub struct AuthorizationAttribute { pub data_type: AuthAttDataType, pub value: AuthAttValue, }
Expand description
An attribute for authorization.
This object includes a data type, which represents the type of the attribute attribute (which data types are allowed depends on which authorization plugin is deployed, and how it is configured), and a value. A wildcard can be represented with data type and value. It means that all authenticated users are allowed to perform an operation.
See also Nakadi Manual
Fields
data_type: AuthAttDataType
The type of attribute (e.g., ‘team’, or ‘permission’, depending on the Nakadi configuration)
value: AuthAttValue
The value of the attribute
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<U, V> From<(U, V)> for AuthorizationAttribute where
U: Into<AuthAttDataType>,
V: Into<AuthAttValue>,
[src]
impl<U, V> From<(U, V)> for AuthorizationAttribute where
U: Into<AuthAttDataType>,
V: Into<AuthAttValue>,
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AuthorizationAttribute
impl Send for AuthorizationAttribute
impl Sync for AuthorizationAttribute
impl Unpin for AuthorizationAttribute
impl UnwindSafe for AuthorizationAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more