#[non_exhaustive]pub struct LogEntry {
pub log_entry: Option<LogEntry>,
/* private fields */
}Expand description
An individual entry in a log.
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.log_entry: Option<LogEntry>The log entry.
Implementations§
Source§impl LogEntry
impl LogEntry
pub fn new() -> Self
Sourcepub fn set_log_entry<T: Into<Option<LogEntry>>>(self, v: T) -> Self
pub fn set_log_entry<T: Into<Option<LogEntry>>>(self, v: T) -> Self
Sets the value of log_entry.
Note that all the setters affecting log_entry are mutually
exclusive.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::CloudLoggingEntry;
let x = LogEntry::new().set_log_entry(Some(
google_cloud_securitycenter_v2::model::log_entry::LogEntry::CloudLoggingEntry(CloudLoggingEntry::default().into())));Sourcepub fn cloud_logging_entry(&self) -> Option<&Box<CloudLoggingEntry>>
pub fn cloud_logging_entry(&self) -> Option<&Box<CloudLoggingEntry>>
The value of log_entry
if it holds a CloudLoggingEntry, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_logging_entry<T: Into<Box<CloudLoggingEntry>>>(
self,
v: T,
) -> Self
pub fn set_cloud_logging_entry<T: Into<Box<CloudLoggingEntry>>>( self, v: T, ) -> Self
Sets the value of log_entry
to hold a CloudLoggingEntry.
Note that all the setters affecting log_entry are
mutually exclusive.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::CloudLoggingEntry;
let x = LogEntry::new().set_cloud_logging_entry(CloudLoggingEntry::default()/* use setters */);
assert!(x.cloud_logging_entry().is_some());Trait Implementations§
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnwindSafe for LogEntry
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