#[non_exhaustive]pub struct RoleDefinition {
pub elasticsearch: Value,
pub kibana: Vec<KibanaPrivilege>,
pub description: Option<String>,
pub metadata: Option<Map<String, Value>>,
}Expand description
Writable role privileges and metadata for Roles::put.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.elasticsearch: ValueElasticsearch cluster, index and run-as privileges, as in the Elasticsearch role API.
kibana: Vec<KibanaPrivilege>§description: Option<String>§metadata: Option<Map<String, Value>>Implementations§
Source§impl RoleDefinition
impl RoleDefinition
pub fn new(elasticsearch: Value, kibana: Vec<KibanaPrivilege>) -> Self
Trait Implementations§
Source§impl Clone for RoleDefinition
impl Clone for RoleDefinition
Source§impl Debug for RoleDefinition
impl Debug for RoleDefinition
Source§impl<'de> Deserialize<'de> for RoleDefinition
impl<'de> Deserialize<'de> for RoleDefinition
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 RoleDefinition
impl RefUnwindSafe for RoleDefinition
impl Send for RoleDefinition
impl Sync for RoleDefinition
impl Unpin for RoleDefinition
impl UnsafeUnpin for RoleDefinition
impl UnwindSafe for RoleDefinition
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