pub struct ShowResultItem(/* private fields */);
Methods from Deref<Target = InspectData>§
pub fn payload_message(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
pub fn payload_message(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
If the log has message, returns an exclusive reference to it.
pub fn payload_keys(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
pub fn payload_keys(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
If the log has structured keys, returns an exclusive reference to them.
pub fn payload_keys_strings(&self) -> Box<dyn Iterator<Item = String> + '_>
pub fn payload_keys_strings(&self) -> Box<dyn Iterator<Item = String> + '_>
Returns an iterator over the payload keys as strings with the format “key=value”.
pub fn file_path(&self) -> Option<&str>
pub fn file_path(&self) -> Option<&str>
Returns the file path associated with the message, if one exists.
pub fn line_number(&self) -> Option<&u64>
pub fn line_number(&self) -> Option<&u64>
Returns the line number associated with the message, if one exists.
Returns the tags associated with the message, if any exist.
pub fn severity(&self) -> Severity
pub fn severity(&self) -> Severity
Returns the severity level of this log.
pub fn dropped_logs(&self) -> Option<u64>
pub fn dropped_logs(&self) -> Option<u64>
Returns number of dropped logs if reported in the message.
pub fn rolled_out_logs(&self) -> Option<u64>
pub fn rolled_out_logs(&self) -> Option<u64>
Returns number of rolled out logs if reported in the message.
pub fn component_name(&self) -> Cow<'_, str>
pub fn component_name(&self) -> Cow<'_, str>
Returns the component nam. This only makes sense for v1 components.
Trait Implementations§
Source§impl Deref for ShowResultItem
impl Deref for ShowResultItem
Source§impl Ord for ShowResultItem
impl Ord for ShowResultItem
Source§impl PartialEq for ShowResultItem
impl PartialEq for ShowResultItem
Source§impl PartialOrd for ShowResultItem
impl PartialOrd for ShowResultItem
Source§impl Serialize for ShowResultItem
impl Serialize for ShowResultItem
impl Eq for ShowResultItem
impl StructuralPartialEq for ShowResultItem
Auto Trait Implementations§
impl Freeze for ShowResultItem
impl RefUnwindSafe for ShowResultItem
impl Send for ShowResultItem
impl Sync for ShowResultItem
impl Unpin for ShowResultItem
impl UnwindSafe for ShowResultItem
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