#[non_exhaustive]pub struct FileOperation {
pub type: OperationType,
/* private fields */
}Expand description
Operation(s) performed on a file.
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.type: OperationTypeThe type of the operation
Implementations§
Source§impl FileOperation
impl FileOperation
pub fn new() -> Self
Sourcepub fn set_type<T: Into<OperationType>>(self, v: T) -> Self
pub fn set_type<T: Into<OperationType>>(self, v: T) -> Self
Sets the value of r#type.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::file::file_operation::OperationType;
let x0 = FileOperation::new().set_type(OperationType::Open);
let x1 = FileOperation::new().set_type(OperationType::Read);
let x2 = FileOperation::new().set_type(OperationType::Rename);Trait Implementations§
Source§impl Clone for FileOperation
impl Clone for FileOperation
Source§fn clone(&self) -> FileOperation
fn clone(&self) -> FileOperation
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 FileOperation
impl Debug for FileOperation
Source§impl Default for FileOperation
impl Default for FileOperation
Source§fn default() -> FileOperation
fn default() -> FileOperation
Returns the “default value” for a type. Read more
Source§impl Message for FileOperation
impl Message for FileOperation
Source§impl PartialEq for FileOperation
impl PartialEq for FileOperation
impl StructuralPartialEq for FileOperation
Auto Trait Implementations§
impl Freeze for FileOperation
impl RefUnwindSafe for FileOperation
impl Send for FileOperation
impl Sync for FileOperation
impl Unpin for FileOperation
impl UnwindSafe for FileOperation
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