pub struct LogEvent { /* private fields */ }
Implementations§
source§impl LogEvent
impl LogEvent
sourcepub fn from_str_legacy(msg: impl Into<String>) -> LogEvent
pub fn from_str_legacy(msg: impl Into<String>) -> LogEvent
This used to be the implementation for LogEvent::from(&'str)
, but this is now only
valid for LogNamespace::Legacy
sourcepub fn from_bytes_legacy(msg: &Bytes) -> LogEvent
pub fn from_bytes_legacy(msg: &Bytes) -> LogEvent
This used to be the implementation for LogEvent::from(Bytes)
, but this is now only
valid for LogNamespace::Legacy
pub fn value(&self) -> &Value
pub fn value_mut(&mut self) -> &mut Value
pub fn metadata(&self) -> &EventMetadata
pub fn metadata_mut(&mut self) -> &mut EventMetadata
sourcepub fn namespace(&self) -> LogNamespace
pub fn namespace(&self) -> LogNamespace
This detects the log namespace used at runtime by checking for the existence
of the read-only “vector” metadata, which only exists (and is required to exist)
with the Vector
log namespace.
source§impl LogEvent
impl LogEvent
pub fn new_with_metadata(metadata: EventMetadata) -> LogEvent
sourcepub fn from_parts(value: Value, metadata: EventMetadata) -> LogEvent
pub fn from_parts(value: Value, metadata: EventMetadata) -> LogEvent
Create a LogEvent
from a Value
and EventMetadata
sourcepub fn from_map(
map: BTreeMap<KeyString, Value>,
metadata: EventMetadata
) -> LogEvent
pub fn from_map( map: BTreeMap<KeyString, Value>, metadata: EventMetadata ) -> LogEvent
Create a LogEvent
from an ObjectMap
and EventMetadata
sourcepub fn into_parts(self) -> (Value, EventMetadata)
pub fn into_parts(self) -> (Value, EventMetadata)
Convert a LogEvent
into a tuple of its components
pub fn with_batch_notifier(self, batch: &BatchNotifier) -> LogEvent
pub fn with_batch_notifier_option( self, batch: &Option<BatchNotifier> ) -> LogEvent
pub fn add_finalizer(&mut self, finalizer: EventFinalizer)
sourcepub fn parse_path_and_get_value(
&self,
path: impl AsRef<str>
) -> Result<Option<&Value>, PathParseError>
pub fn parse_path_and_get_value( &self, path: impl AsRef<str> ) -> Result<Option<&Value>, PathParseError>
Parse the specified path
and if there are no parsing errors, attempt to get a reference to a value.
§Errors
Will return an error if path parsing failed.
pub fn get<'a>(&self, key: impl TargetPath<'a>) -> Option<&Value>
sourcepub fn get_by_meaning(&self, meaning: impl AsRef<str>) -> Option<&Value>
pub fn get_by_meaning(&self, meaning: impl AsRef<str>) -> Option<&Value>
Retrieves the value of a field based on it’s meaning. This will first check if the value has previously been dropped. It is worth being aware that if the field has been dropped and then somehow re-added, we still fetch the dropped value here.
sourcepub fn get_mut_by_meaning(
&mut self,
meaning: impl AsRef<str>
) -> Option<&mut Value>
pub fn get_mut_by_meaning( &mut self, meaning: impl AsRef<str> ) -> Option<&mut Value>
Retrieves the mutable value of a field based on it’s meaning.
Note that this does not check the dropped fields, unlike get_by_meaning
, since the
purpose of the mutable reference is to be able to modify the value and modifying the dropped
fields has no effect on the resulting event.
sourcepub fn find_key_by_meaning(
&self,
meaning: impl AsRef<str>
) -> Option<&OwnedTargetPath>
pub fn find_key_by_meaning( &self, meaning: impl AsRef<str> ) -> Option<&OwnedTargetPath>
Retrieves the target path of a field based on the specified meaning
.
pub fn get_mut<'a>(&mut self, path: impl TargetPath<'a>) -> Option<&mut Value>
pub fn contains<'a>(&self, path: impl TargetPath<'a>) -> bool
sourcepub fn parse_path_and_insert(
&mut self,
path: impl AsRef<str>,
value: impl Into<Value>
) -> Result<Option<Value>, PathParseError>
pub fn parse_path_and_insert( &mut self, path: impl AsRef<str>, value: impl Into<Value> ) -> Result<Option<Value>, PathParseError>
Parse the specified path
and if there are no parsing errors, attempt to insert the specified value
.
§Errors
Will return an error if path parsing failed.
pub fn insert<'a>( &mut self, path: impl TargetPath<'a>, value: impl Into<Value> ) -> Option<Value>
pub fn maybe_insert<'a>( &mut self, path: Option<impl TargetPath<'a>>, value: impl Into<Value> )
pub fn try_insert<'a>( &mut self, path: impl TargetPath<'a>, value: impl Into<Value> )
sourcepub fn rename_key<'a>(
&mut self,
from: impl TargetPath<'a>,
to: impl TargetPath<'a>
)
pub fn rename_key<'a>( &mut self, from: impl TargetPath<'a>, to: impl TargetPath<'a> )
Rename a key
If to_key
already exists in the structure its value will be overwritten.
pub fn remove<'a>(&mut self, path: impl TargetPath<'a>) -> Option<Value>
pub fn remove_prune<'a>( &mut self, path: impl TargetPath<'a>, prune: bool ) -> Option<Value>
pub fn keys(&self) -> Option<impl Iterator<Item = KeyString>>
sourcepub fn all_event_fields(
&self
) -> Option<impl Iterator<Item = (KeyString, &Value)> + Serialize>
pub fn all_event_fields( &self ) -> Option<impl Iterator<Item = (KeyString, &Value)> + Serialize>
If the event root value is a map, build and return an iterator to event field and value pairs.
TODO: Ideally this should return target paths to be consistent with other LogEvent
methods.
sourcepub fn all_event_fields_skip_array_elements(
&self
) -> Option<impl Iterator<Item = (KeyString, &Value)> + Serialize>
pub fn all_event_fields_skip_array_elements( &self ) -> Option<impl Iterator<Item = (KeyString, &Value)> + Serialize>
Similar to LogEvent::all_event_fields
, but doesn’t traverse individual array elements.
sourcepub fn all_metadata_fields(
&self
) -> Option<impl Iterator<Item = (KeyString, &Value)> + Serialize>
pub fn all_metadata_fields( &self ) -> Option<impl Iterator<Item = (KeyString, &Value)> + Serialize>
If the metadata root value is a map, build and return an iterator to metadata field and value pairs.
TODO: Ideally this should return target paths to be consistent with other LogEvent
methods.
sourcepub fn convert_to_fields(
&self
) -> impl Iterator<Item = (KeyString, &Value)> + Serialize
pub fn convert_to_fields( &self ) -> impl Iterator<Item = (KeyString, &Value)> + Serialize
Returns an iterator of all fields if the value is an Object. Otherwise, a single field is returned with a “message” key. Field names that are could be interpreted as alternate paths (i.e. containing periods, square brackets, etc) are quoted.
sourcepub fn convert_to_fields_unquoted(
&self
) -> impl Iterator<Item = (KeyString, &Value)> + Serialize
pub fn convert_to_fields_unquoted( &self ) -> impl Iterator<Item = (KeyString, &Value)> + Serialize
Returns an iterator of all fields if the value is an Object. Otherwise, a single field is returned with a “message” key. Field names are not quoted.
pub fn is_empty_object(&self) -> bool
pub fn as_map(&self) -> Option<&BTreeMap<KeyString, Value>>
pub fn as_map_mut(&mut self) -> Option<&mut BTreeMap<KeyString, Value>>
source§impl LogEvent
impl LogEvent
Log Namespace utility methods. These can only be used when an event has a valid schema definition set (which should be on every event in transforms and sinks).
sourcepub fn message_path(&self) -> Option<&OwnedTargetPath>
pub fn message_path(&self) -> Option<&OwnedTargetPath>
Fetches the “message” path of the event. This is either from the “message” semantic meaning (Vector namespace) or from the message key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn timestamp_path(&self) -> Option<&OwnedTargetPath>
pub fn timestamp_path(&self) -> Option<&OwnedTargetPath>
Fetches the “timestamp” path of the event. This is either from the “timestamp” semantic meaning (Vector namespace) or from the timestamp key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn host_path(&self) -> Option<&OwnedTargetPath>
pub fn host_path(&self) -> Option<&OwnedTargetPath>
Fetches the host
path of the event. This is either from the “host” semantic meaning (Vector namespace)
or from the host key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn source_type_path(&self) -> Option<&OwnedTargetPath>
pub fn source_type_path(&self) -> Option<&OwnedTargetPath>
Fetches the source_type
path of the event. This is either from the source_type
Vector metadata field (Vector namespace)
or from the source_type
key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn get_message(&self) -> Option<&Value>
pub fn get_message(&self) -> Option<&Value>
Fetches the message
of the event. This is either from the “message” semantic meaning (Vector namespace)
or from the message key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn get_timestamp(&self) -> Option<&Value>
pub fn get_timestamp(&self) -> Option<&Value>
Fetches the timestamp
of the event. This is either from the “timestamp” semantic meaning (Vector namespace)
or from the timestamp key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn remove_timestamp(&mut self) -> Option<Value>
pub fn remove_timestamp(&mut self) -> Option<Value>
Removes the timestamp
from the event. This is either from the “timestamp” semantic meaning (Vector namespace)
or from the timestamp key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn get_host(&self) -> Option<&Value>
pub fn get_host(&self) -> Option<&Value>
Fetches the host
of the event. This is either from the “host” semantic meaning (Vector namespace)
or from the host key set on the “Global Log Schema” (Legacy namespace).
sourcepub fn get_source_type(&self) -> Option<&Value>
pub fn get_source_type(&self) -> Option<&Value>
Fetches the source_type
of the event. This is either from the source_type
Vector metadata field (Vector namespace)
or from the source_type
key set on the “Global Log Schema” (Legacy namespace).
Trait Implementations§
source§impl AsMut<LogEvent> for TraceEvent
impl AsMut<LogEvent> for TraceEvent
source§impl AsRef<LogEvent> for TraceEvent
impl AsRef<LogEvent> for TraceEvent
source§impl ByteSizeOf for LogEvent
impl ByteSizeOf for LogEvent
source§impl<'de> Deserialize<'de> for LogEvent
impl<'de> Deserialize<'de> for LogEvent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<LogEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LogEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl EstimatedJsonEncodedSizeOf for LogEvent
impl EstimatedJsonEncodedSizeOf for LogEvent
fn estimated_json_encoded_size_of(&self) -> JsonSize
source§impl EventContainer for LogEvent
impl EventContainer for LogEvent
source§fn into_events(self) -> <LogEvent as EventContainer>::IntoIter
fn into_events(self) -> <LogEvent as EventContainer>::IntoIter
Event
.source§impl EventDataEq for LogEvent
impl EventDataEq for LogEvent
fn event_data_eq(&self, other: &LogEvent) -> bool
source§impl<K, V> Extend<(K, V)> for LogEvent
impl<K, V> Extend<(K, V)> for LogEvent
source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (K, V)>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (K, V)>,
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl Finalizable for LogEvent
impl Finalizable for LogEvent
source§fn take_finalizers(&mut self) -> EventFinalizers
fn take_finalizers(&mut self) -> EventFinalizers
source§impl<'a> From<&'a mut LogEvent> for EventMutRef<'a>
impl<'a> From<&'a mut LogEvent> for EventMutRef<'a>
source§fn from(log: &'a mut LogEvent) -> EventMutRef<'a>
fn from(log: &'a mut LogEvent) -> EventMutRef<'a>
source§impl From<LogEvent> for EventArray
impl From<LogEvent> for EventArray
source§fn from(log: LogEvent) -> EventArray
fn from(log: LogEvent) -> EventArray
source§impl From<LogEvent> for TraceEvent
impl From<LogEvent> for TraceEvent
source§fn from(log: LogEvent) -> TraceEvent
fn from(log: LogEvent) -> TraceEvent
source§impl<K, V> FromIterator<(K, V)> for LogEvent
impl<K, V> FromIterator<(K, V)> for LogEvent
source§impl GetEventCountTags for LogEvent
impl GetEventCountTags for LogEvent
source§impl MaybeAsLogMut for LogEvent
impl MaybeAsLogMut for LogEvent
fn maybe_as_log_mut(&mut self) -> Option<&mut LogEvent>
source§impl PartialEq for LogEvent
impl PartialEq for LogEvent
source§impl Serialize for LogEvent
impl Serialize for LogEvent
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
source§impl Visit for LogEvent
impl Visit for LogEvent
Note that tracing::field::Field
containing dots and other special characters will be treated as a single segment.
source§fn record_str(&mut self, field: &Field, value: &str)
fn record_str(&mut self, field: &Field, value: &str)
source§fn record_debug(&mut self, field: &Field, value: &dyn Debug)
fn record_debug(&mut self, field: &Field, value: &dyn Debug)
fmt::Debug
.source§fn record_i64(&mut self, field: &Field, value: i64)
fn record_i64(&mut self, field: &Field, value: i64)
source§fn record_u64(&mut self, field: &Field, value: u64)
fn record_u64(&mut self, field: &Field, value: u64)
source§fn record_bool(&mut self, field: &Field, value: bool)
fn record_bool(&mut self, field: &Field, value: bool)
§fn record_f64(&mut self, field: &Field, value: f64)
fn record_f64(&mut self, field: &Field, value: f64)
§fn record_i128(&mut self, field: &Field, value: i128)
fn record_i128(&mut self, field: &Field, value: i128)
§fn record_u128(&mut self, field: &Field, value: u128)
fn record_u128(&mut self, field: &Field, value: u128)
§fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))
fn record_error(&mut self, field: &Field, value: &(dyn Error + 'static))
Error
.impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl !Freeze for LogEvent
impl !RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl !UnwindSafe for LogEvent
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> 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> ⓘ
§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
§fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize(&self, serializer: &mut dyn Serializer)
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.