pub struct AclRuleRequest {
pub name: String,
pub action: AclAction,
pub enabled: Option<bool>,
pub order: Option<i32>,
pub description: Option<String>,
pub source_type: Option<String>,
pub source_value: Option<String>,
pub destination_type: Option<String>,
pub destination_value: Option<String>,
}Expand description
Request body for creating or updating an ACL rule.
Fields§
§name: String§action: AclAction§enabled: Option<bool>§order: Option<i32>§description: Option<String>§source_type: Option<String>§source_value: Option<String>§destination_type: Option<String>§destination_value: Option<String>Implementations§
Source§impl AclRuleRequest
impl AclRuleRequest
pub fn new(name: impl Into<String>, action: AclAction) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn order(self, order: i32) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn source( self, source_type: impl Into<String>, source_value: impl Into<String>, ) -> Self
pub fn destination( self, dest_type: impl Into<String>, dest_value: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for AclRuleRequest
impl Clone for AclRuleRequest
Source§fn clone(&self) -> AclRuleRequest
fn clone(&self) -> AclRuleRequest
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 AclRuleRequest
impl Debug for AclRuleRequest
Auto Trait Implementations§
impl Freeze for AclRuleRequest
impl RefUnwindSafe for AclRuleRequest
impl Send for AclRuleRequest
impl Sync for AclRuleRequest
impl Unpin for AclRuleRequest
impl UnsafeUnpin for AclRuleRequest
impl UnwindSafe for AclRuleRequest
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