pub struct Records(/* private fields */);
Expand description
A Vec of log entries.
Implementations§
source§impl Records
impl Records
sourcepub fn contains_message(&self, lookup: impl AsRef<str>) -> bool
pub fn contains_message(&self, lookup: impl AsRef<str>) -> bool
check if log message has been stored with the given payload.
sourcepub fn contains_value(
&self,
field_name: impl AsRef<str>,
lookup: RecordValue
) -> bool
pub fn contains_value( &self, field_name: impl AsRef<str>, lookup: RecordValue ) -> bool
check if log entry (this can be span attributes or log messages) has been stored with the given payload.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Records
impl<'de> Deserialize<'de> for Records
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Records
impl PartialEq for Records
impl Eq for Records
impl StructuralPartialEq for Records
Auto Trait Implementations§
impl Freeze for Records
impl RefUnwindSafe for Records
impl Send for Records
impl Sync for Records
impl Unpin for Records
impl UnwindSafe for Records
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.