pub struct LogEntryBuilder { /* private fields */ }
Implementations§
Source§impl LogEntryBuilder
impl LogEntryBuilder
pub fn source(self, source: impl Into<LogEntrySource>) -> LogEntryBuilder
pub fn level(self, level: impl Into<LogEntryLevel>) -> LogEntryBuilder
pub fn text(self, text: impl Into<String>) -> LogEntryBuilder
pub fn category(self, category: impl Into<LogEntryCategory>) -> LogEntryBuilder
pub fn timestamp(self, timestamp: impl Into<Timestamp>) -> LogEntryBuilder
pub fn url(self, url: impl Into<String>) -> LogEntryBuilder
pub fn line_number(self, line_number: impl Into<i64>) -> LogEntryBuilder
pub fn stack_trace(self, stack_trace: impl Into<StackTrace>) -> LogEntryBuilder
pub fn network_request_id( self, network_request_id: impl Into<RequestId>, ) -> LogEntryBuilder
pub fn worker_id(self, worker_id: impl Into<String>) -> LogEntryBuilder
pub fn arg(self, arg: impl Into<RemoteObject>) -> LogEntryBuilder
pub fn args<I, S>(self, args: I) -> LogEntryBuilder
pub fn build(self) -> Result<LogEntry, String>
Trait Implementations§
Source§impl Clone for LogEntryBuilder
impl Clone for LogEntryBuilder
Source§fn clone(&self) -> LogEntryBuilder
fn clone(&self) -> LogEntryBuilder
Returns a copy 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 Default for LogEntryBuilder
impl Default for LogEntryBuilder
Source§fn default() -> LogEntryBuilder
fn default() -> LogEntryBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogEntryBuilder
impl RefUnwindSafe for LogEntryBuilder
impl Send for LogEntryBuilder
impl Sync for LogEntryBuilder
impl Unpin for LogEntryBuilder
impl UnwindSafe for LogEntryBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more