pub struct TelemetryFilter {
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub kinds: Option<HashSet<TelemetryKind>>,
pub mediator_did: Option<String>,
pub sender_did: Option<String>,
}Fields§
§since: Option<DateTime<Utc>>§until: Option<DateTime<Utc>>§kinds: Option<HashSet<TelemetryKind>>§mediator_did: Option<String>§sender_did: Option<String>Implementations§
Source§impl TelemetryFilter
impl TelemetryFilter
pub fn new() -> Self
pub fn since(self, t: DateTime<Utc>) -> Self
pub fn until(self, t: DateTime<Utc>) -> Self
pub fn kind(self, k: TelemetryKind) -> Self
pub fn mediator(self, did: impl Into<String>) -> Self
pub fn sender(self, did: impl Into<String>) -> Self
pub fn matches(&self, ev: &TelemetryEvent) -> bool
Trait Implementations§
Source§impl Clone for TelemetryFilter
impl Clone for TelemetryFilter
Source§fn clone(&self) -> TelemetryFilter
fn clone(&self) -> TelemetryFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryFilter
impl Debug for TelemetryFilter
Source§impl Default for TelemetryFilter
impl Default for TelemetryFilter
Source§fn default() -> TelemetryFilter
fn default() -> TelemetryFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelemetryFilter
impl RefUnwindSafe for TelemetryFilter
impl Send for TelemetryFilter
impl Sync for TelemetryFilter
impl Unpin for TelemetryFilter
impl UnsafeUnpin for TelemetryFilter
impl UnwindSafe for TelemetryFilter
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
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, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.