pub struct SetRoleRule {
pub capability: Vec<String>,
pub json: Option<bool>,
pub path: String,
pub role_name: String,
pub rule_type: Option<String>,
pub token: Option<String>,
pub ttl: Option<i32>,
pub uid_token: Option<String>,
}Fields§
§capability: Vec<String>List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny]
json: Option<bool>Set output format to JSON
path: StringThe path the rule refers to
role_name: StringThe role name to be updated
rule_type: Option<String>item-rule, target-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule, sra-rule
token: Option<String>Authentication token (see /auth and /configure)
ttl: Option<i32>RoleRule ttl
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl SetRoleRule
impl SetRoleRule
Trait Implementations§
Source§impl Clone for SetRoleRule
impl Clone for SetRoleRule
Source§fn clone(&self) -> SetRoleRule
fn clone(&self) -> SetRoleRule
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 SetRoleRule
impl Debug for SetRoleRule
Source§impl Default for SetRoleRule
impl Default for SetRoleRule
Source§fn default() -> SetRoleRule
fn default() -> SetRoleRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetRoleRule
impl<'de> Deserialize<'de> for SetRoleRule
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 SetRoleRule
impl PartialEq for SetRoleRule
Source§fn eq(&self, other: &SetRoleRule) -> bool
fn eq(&self, other: &SetRoleRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SetRoleRule
impl Serialize for SetRoleRule
impl StructuralPartialEq for SetRoleRule
Auto Trait Implementations§
impl Freeze for SetRoleRule
impl RefUnwindSafe for SetRoleRule
impl Send for SetRoleRule
impl Sync for SetRoleRule
impl Unpin for SetRoleRule
impl UnsafeUnpin for SetRoleRule
impl UnwindSafe for SetRoleRule
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