#[non_exhaustive]pub struct CloudLoggingEntry {
pub insert_id: String,
pub log_id: String,
pub resource_container: String,
pub timestamp: Option<Timestamp>,
/* private fields */
}Expand description
Metadata taken from a Cloud Logging LogEntry
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.insert_id: StringA unique identifier for the log entry.
log_id: StringThe type of the log (part of log_name. log_name is the resource name of
the log to which this log entry belongs). For example:
cloudresourcemanager.googleapis.com/activity Note that this field is not
URL-encoded, unlike in LogEntry.
resource_container: StringThe organization, folder, or project of the monitored resource that produced this log entry.
timestamp: Option<Timestamp>The time the event described by the log entry occurred.
Implementations§
Source§impl CloudLoggingEntry
impl CloudLoggingEntry
pub fn new() -> Self
Sourcepub fn set_insert_id<T: Into<String>>(self, v: T) -> Self
pub fn set_insert_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_log_id<T: Into<String>>(self, v: T) -> Self
pub fn set_log_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_resource_container<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_container<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_container.
§Example
ⓘ
let x = CloudLoggingEntry::new().set_resource_container("example");Sourcepub fn set_timestamp<T>(self, v: T) -> Self
pub fn set_timestamp<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_timestamp<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CloudLoggingEntry
impl Clone for CloudLoggingEntry
Source§fn clone(&self) -> CloudLoggingEntry
fn clone(&self) -> CloudLoggingEntry
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 CloudLoggingEntry
impl Debug for CloudLoggingEntry
Source§impl Default for CloudLoggingEntry
impl Default for CloudLoggingEntry
Source§fn default() -> CloudLoggingEntry
fn default() -> CloudLoggingEntry
Returns the “default value” for a type. Read more
Source§impl Message for CloudLoggingEntry
impl Message for CloudLoggingEntry
Source§impl PartialEq for CloudLoggingEntry
impl PartialEq for CloudLoggingEntry
impl StructuralPartialEq for CloudLoggingEntry
Auto Trait Implementations§
impl Freeze for CloudLoggingEntry
impl RefUnwindSafe for CloudLoggingEntry
impl Send for CloudLoggingEntry
impl Sync for CloudLoggingEntry
impl Unpin for CloudLoggingEntry
impl UnwindSafe for CloudLoggingEntry
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