#[non_exhaustive]pub struct LogEntryOperation {
pub id: String,
pub producer: String,
pub first: bool,
pub last: bool,
/* private fields */
}Expand description
Additional information about a potentially long-running operation with which a log entry is associated.
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.id: StringOptional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.
producer: StringOptional. An arbitrary producer identifier. The combination of
id and producer must be globally unique. Examples for producer:
"MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication".
first: boolOptional. Set this to True if this is the first log entry in the operation.
last: boolOptional. Set this to True if this is the last log entry in the operation.
Implementations§
Source§impl LogEntryOperation
impl LogEntryOperation
Trait Implementations§
Source§impl Clone for LogEntryOperation
impl Clone for LogEntryOperation
Source§fn clone(&self) -> LogEntryOperation
fn clone(&self) -> LogEntryOperation
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 LogEntryOperation
impl Debug for LogEntryOperation
Source§impl Default for LogEntryOperation
impl Default for LogEntryOperation
Source§fn default() -> LogEntryOperation
fn default() -> LogEntryOperation
Returns the “default value” for a type. Read more
Source§impl Message for LogEntryOperation
impl Message for LogEntryOperation
Source§impl PartialEq for LogEntryOperation
impl PartialEq for LogEntryOperation
impl StructuralPartialEq for LogEntryOperation
Auto Trait Implementations§
impl Freeze for LogEntryOperation
impl RefUnwindSafe for LogEntryOperation
impl Send for LogEntryOperation
impl Sync for LogEntryOperation
impl Unpin for LogEntryOperation
impl UnwindSafe for LogEntryOperation
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