pub struct LogsDataBuilder { /* private fields */ }
Expand description
Internal state of the LogsDataBuilder impl External customers should not directly access these fields.
Implementations§
Source§impl LogsDataBuilder
impl LogsDataBuilder
Sourcepub fn new(args: BuilderArgs) -> Self
pub fn new(args: BuilderArgs) -> Self
Constructs a new LogsDataBuilder
Sourcepub fn set_dropped(self, value: u64) -> Self
pub fn set_dropped(self, value: u64) -> Self
Sets the number of dropped messages. If value is greater than zero, a DroppedLogs error will also be added to the list of errors or updated if already present.
Sourcepub fn set_raw_severity(self, severity: u8) -> Self
pub fn set_raw_severity(self, severity: u8) -> Self
Overrides the severity set through the args with a raw severity.
Sourcepub fn set_rolled_out(self, value: u64) -> Self
pub fn set_rolled_out(self, value: u64) -> Self
Sets the number of rolled out messages. If value is greater than zero, a RolledOutLogs error will also be added to the list of errors or updated if already present.
Sourcepub fn set_severity(self, severity: Severity) -> Self
pub fn set_severity(self, severity: Severity) -> Self
Sets the severity of the log. This will unset the raw severity.
Sourcepub fn set_message(self, msg: impl Into<String>) -> Self
pub fn set_message(self, msg: impl Into<String>) -> Self
Sets the message to be printed in the log message
Sourcepub fn set_file(self, file: impl Into<String>) -> Self
pub fn set_file(self, file: impl Into<String>) -> Self
Sets the file name that printed this message.
Auto Trait Implementations§
impl Freeze for LogsDataBuilder
impl RefUnwindSafe for LogsDataBuilder
impl Send for LogsDataBuilder
impl Sync for LogsDataBuilder
impl Unpin for LogsDataBuilder
impl UnwindSafe for LogsDataBuilder
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