#[non_exhaustive]pub struct SessionSearchOptions {
pub session_ids: Option<Vec<String>>,
pub entry_types: Option<Vec<String>>,
pub start_time: Option<DateTime<Utc>>,
pub end_time: Option<DateTime<Utc>>,
pub max_results: Option<usize>,
}Expand description
Options for searching persisted sessions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_ids: Option<Vec<String>>Restrict search to these session IDs.
entry_types: Option<Vec<String>>Restrict search to entry discriminator names such as "message" or "label".
start_time: Option<DateTime<Utc>>Include entries at or after this timestamp.
end_time: Option<DateTime<Utc>>Include entries at or before this timestamp.
max_results: Option<usize>Maximum number of hits to return. Defaults to 50.
Implementations§
Source§impl SessionSearchOptions
impl SessionSearchOptions
Sourcepub fn with_session_ids(self, session_ids: Vec<String>) -> Self
pub fn with_session_ids(self, session_ids: Vec<String>) -> Self
Restricts search to the given session IDs.
Sourcepub fn with_entry_types(self, entry_types: Vec<String>) -> Self
pub fn with_entry_types(self, entry_types: Vec<String>) -> Self
Restricts search to entry discriminator names such as "message" or "label".
Sourcepub fn with_start_time(self, start_time: DateTime<Utc>) -> Self
pub fn with_start_time(self, start_time: DateTime<Utc>) -> Self
Includes only entries at or after this timestamp.
Sourcepub fn with_end_time(self, end_time: DateTime<Utc>) -> Self
pub fn with_end_time(self, end_time: DateTime<Utc>) -> Self
Includes only entries at or before this timestamp.
Sourcepub fn with_max_results(self, max_results: usize) -> Self
pub fn with_max_results(self, max_results: usize) -> Self
Sets the maximum number of hits to return (defaults to 50).
Trait Implementations§
Source§impl Clone for SessionSearchOptions
impl Clone for SessionSearchOptions
Source§impl Debug for SessionSearchOptions
impl Debug for SessionSearchOptions
Source§impl Default for SessionSearchOptions
impl Default for SessionSearchOptions
impl Eq for SessionSearchOptions
Source§impl PartialEq for SessionSearchOptions
impl PartialEq for SessionSearchOptions
impl StructuralPartialEq for SessionSearchOptions
Auto Trait Implementations§
impl Freeze for SessionSearchOptions
impl RefUnwindSafe for SessionSearchOptions
impl Send for SessionSearchOptions
impl Sync for SessionSearchOptions
impl Unpin for SessionSearchOptions
impl UnsafeUnpin for SessionSearchOptions
impl UnwindSafe for SessionSearchOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.impl<T> Fruit for T
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