#[non_exhaustive]pub struct AntivirusOverride {
pub protocol: Protocol,
pub action: ThreatAction,
/* private fields */
}Expand description
Defines what action to take for antivirus threats per protocol.
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.protocol: ProtocolRequired. Protocol to match.
action: ThreatActionRequired. Threat action override. For some threat types, only a subset of actions applies.
Implementations§
Source§impl AntivirusOverride
impl AntivirusOverride
pub fn new() -> Self
Sourcepub fn set_protocol<T: Into<Protocol>>(self, v: T) -> Self
pub fn set_protocol<T: Into<Protocol>>(self, v: T) -> Self
Sourcepub fn set_action<T: Into<ThreatAction>>(self, v: T) -> Self
pub fn set_action<T: Into<ThreatAction>>(self, v: T) -> Self
Sets the value of action.
§Example
ⓘ
use google_cloud_networksecurity_v1::model::ThreatAction;
let x0 = AntivirusOverride::new().set_action(ThreatAction::DefaultAction);
let x1 = AntivirusOverride::new().set_action(ThreatAction::Allow);
let x2 = AntivirusOverride::new().set_action(ThreatAction::Alert);Trait Implementations§
Source§impl Clone for AntivirusOverride
impl Clone for AntivirusOverride
Source§fn clone(&self) -> AntivirusOverride
fn clone(&self) -> AntivirusOverride
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 AntivirusOverride
impl Debug for AntivirusOverride
Source§impl Default for AntivirusOverride
impl Default for AntivirusOverride
Source§fn default() -> AntivirusOverride
fn default() -> AntivirusOverride
Returns the “default value” for a type. Read more
Source§impl Message for AntivirusOverride
impl Message for AntivirusOverride
Source§impl PartialEq for AntivirusOverride
impl PartialEq for AntivirusOverride
impl StructuralPartialEq for AntivirusOverride
Auto Trait Implementations§
impl Freeze for AntivirusOverride
impl RefUnwindSafe for AntivirusOverride
impl Send for AntivirusOverride
impl Sync for AntivirusOverride
impl Unpin for AntivirusOverride
impl UnsafeUnpin for AntivirusOverride
impl UnwindSafe for AntivirusOverride
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