pub struct UpdateProtectionRuleRequest {
pub rules: Vec<ProtectionRuleKind>,
pub bypass_groups: Vec<String>,
pub bypass_users: Vec<String>,
}Fields§
§rules: Vec<ProtectionRuleKind>Configuration of protection restrictions
bypass_groups: Vec<String>Groups that can bypass this ruleset
bypass_users: Vec<String>Users that can bypass this ruleset
Implementations§
Source§impl UpdateProtectionRuleRequest
impl UpdateProtectionRuleRequest
pub fn new( rules: Vec<ProtectionRuleKind>, bypass_groups: Vec<String>, bypass_users: Vec<String>, ) -> UpdateProtectionRuleRequest
Trait Implementations§
Source§impl Clone for UpdateProtectionRuleRequest
impl Clone for UpdateProtectionRuleRequest
Source§fn clone(&self) -> UpdateProtectionRuleRequest
fn clone(&self) -> UpdateProtectionRuleRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateProtectionRuleRequest
impl Debug for UpdateProtectionRuleRequest
Source§impl Default for UpdateProtectionRuleRequest
impl Default for UpdateProtectionRuleRequest
Source§fn default() -> UpdateProtectionRuleRequest
fn default() -> UpdateProtectionRuleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateProtectionRuleRequest
impl<'de> Deserialize<'de> for UpdateProtectionRuleRequest
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
impl StructuralPartialEq for UpdateProtectionRuleRequest
Auto Trait Implementations§
impl Freeze for UpdateProtectionRuleRequest
impl RefUnwindSafe for UpdateProtectionRuleRequest
impl Send for UpdateProtectionRuleRequest
impl Sync for UpdateProtectionRuleRequest
impl Unpin for UpdateProtectionRuleRequest
impl UnwindSafe for UpdateProtectionRuleRequest
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