#[non_exhaustive]pub struct ProcessSignature {
pub signature_type: SignatureType,
pub signature: Option<Signature>,
/* private fields */
}Expand description
Indicates what signature matched this process.
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.signature_type: SignatureTypeDescribes the type of resource associated with the signature.
signature: Option<Signature>The signature.
Implementations§
Source§impl ProcessSignature
impl ProcessSignature
pub fn new() -> Self
Sourcepub fn set_signature_type<T: Into<SignatureType>>(self, v: T) -> Self
pub fn set_signature_type<T: Into<SignatureType>>(self, v: T) -> Self
Sets the value of signature_type.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::indicator::process_signature::SignatureType;
let x0 = ProcessSignature::new().set_signature_type(SignatureType::Process);
let x1 = ProcessSignature::new().set_signature_type(SignatureType::File);Sourcepub fn set_signature<T: Into<Option<Signature>>>(self, v: T) -> Self
pub fn set_signature<T: Into<Option<Signature>>>(self, v: T) -> Self
Sets the value of signature.
Note that all the setters affecting signature are mutually
exclusive.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::indicator::process_signature::MemoryHashSignature;
let x = ProcessSignature::new().set_signature(Some(
google_cloud_securitycenter_v2::model::indicator::process_signature::Signature::MemoryHashSignature(MemoryHashSignature::default().into())));Sourcepub fn memory_hash_signature(&self) -> Option<&Box<MemoryHashSignature>>
pub fn memory_hash_signature(&self) -> Option<&Box<MemoryHashSignature>>
The value of signature
if it holds a MemoryHashSignature, None if the field is not set or
holds a different branch.
Sourcepub fn set_memory_hash_signature<T: Into<Box<MemoryHashSignature>>>(
self,
v: T,
) -> Self
pub fn set_memory_hash_signature<T: Into<Box<MemoryHashSignature>>>( self, v: T, ) -> Self
Sets the value of signature
to hold a MemoryHashSignature.
Note that all the setters affecting signature are
mutually exclusive.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::indicator::process_signature::MemoryHashSignature;
let x = ProcessSignature::new().set_memory_hash_signature(MemoryHashSignature::default()/* use setters */);
assert!(x.memory_hash_signature().is_some());
assert!(x.yara_rule_signature().is_none());Sourcepub fn yara_rule_signature(&self) -> Option<&Box<YaraRuleSignature>>
pub fn yara_rule_signature(&self) -> Option<&Box<YaraRuleSignature>>
The value of signature
if it holds a YaraRuleSignature, None if the field is not set or
holds a different branch.
Sourcepub fn set_yara_rule_signature<T: Into<Box<YaraRuleSignature>>>(
self,
v: T,
) -> Self
pub fn set_yara_rule_signature<T: Into<Box<YaraRuleSignature>>>( self, v: T, ) -> Self
Sets the value of signature
to hold a YaraRuleSignature.
Note that all the setters affecting signature are
mutually exclusive.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::indicator::process_signature::YaraRuleSignature;
let x = ProcessSignature::new().set_yara_rule_signature(YaraRuleSignature::default()/* use setters */);
assert!(x.yara_rule_signature().is_some());
assert!(x.memory_hash_signature().is_none());Trait Implementations§
Source§impl Clone for ProcessSignature
impl Clone for ProcessSignature
Source§fn clone(&self) -> ProcessSignature
fn clone(&self) -> ProcessSignature
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 ProcessSignature
impl Debug for ProcessSignature
Source§impl Default for ProcessSignature
impl Default for ProcessSignature
Source§fn default() -> ProcessSignature
fn default() -> ProcessSignature
Returns the “default value” for a type. Read more
Source§impl Message for ProcessSignature
impl Message for ProcessSignature
Source§impl PartialEq for ProcessSignature
impl PartialEq for ProcessSignature
impl StructuralPartialEq for ProcessSignature
Auto Trait Implementations§
impl Freeze for ProcessSignature
impl RefUnwindSafe for ProcessSignature
impl Send for ProcessSignature
impl Sync for ProcessSignature
impl Unpin for ProcessSignature
impl UnwindSafe for ProcessSignature
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