pub struct HasPermissionResponse
pub principal: String,
pub object: String,
pub object_type: String,
pub permission: String,
pub has_permission: bool,
pub filters: HashMap<String, String>,
pub info: HashMap<String, String>,
The response from the /has/permission endpoint.
Fields
principal: StringValue of principal.
object: StringFully-qualified value of object.
object_type: StringValue of object_type.
permission: StringValue of permission.
has_permission: boolIndicates whether the specified user has the specified permission on the specified target.
filters: HashMap<String, String>Map of column/filters that have been granted.
info: HashMap<String, String>Additional information.
Trait Implementations
Source
impl Clone for HasPermissionResponse
Source
fn clone(&self) -> HasPermissionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource
impl Debug for HasPermissionResponse
Source
impl Default for HasPermissionResponse
Source
fn default() -> HasPermissionResponse
Returns the “default value” for a type. Read more
Source
impl<‘de> Deserialize<‘de> for HasPermissionResponse
Sourcefn deserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
fn deserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
where __D: Deserializer<‘de>,
Deserialize this value from the given Serde deserializer. Read more