pub struct AppFilter {
client: Option<String>,
account: Option<String>,
since: Option<String>,
}Expand description
What every route here narrows on. Both empty lists everything.
Fields§
§client: Option<String>One application, by the client_id the rows spell.
account: Option<String>One account, by its handle or its did:.
since: Option<String>Only log rows from this long ago or later, as a span such as 7d. A
live login carries no time to narrow on, so the logins read ignores
it.
Implementations§
Source§impl AppFilter
impl AppFilter
Sourcefn admits(
&self,
client: Option<&str>,
account: &str,
resolved: Option<&str>,
) -> bool
fn admits( &self, client: Option<&str>, account: &str, resolved: Option<&str>, ) -> bool
Whether a row naming client and account passes. A row with no
client is the account writing with its own credential, which no
client filter matches.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppFilter
impl<'de> Deserialize<'de> for AppFilter
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
Auto Trait Implementations§
impl Freeze for AppFilter
impl RefUnwindSafe for AppFilter
impl Send for AppFilter
impl Sync for AppFilter
impl Unpin for AppFilter
impl UnsafeUnpin for AppFilter
impl UnwindSafe for AppFilter
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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