pub struct KnowledgeQuery {
pub source: Option<String>,
pub classification: Option<ClassificationLevel>,
pub valid_at: Option<UtcDateTime>,
pub tags: Vec<String>,
}Expand description
Filters understood by portable Knowledge Hub stores.
Fields§
§source: Option<String>§classification: Option<ClassificationLevel>§valid_at: Option<UtcDateTime>Implementations§
Source§impl KnowledgeQuery
impl KnowledgeQuery
Sourcepub fn valid_at(timestamp: UtcDateTime) -> KnowledgeQuery
pub fn valid_at(timestamp: UtcDateTime) -> KnowledgeQuery
Match objects that are valid and not superseded at timestamp.
Sourcepub fn matches(&self, object: &KnowledgeObjectV1) -> bool
pub fn matches(&self, object: &KnowledgeObjectV1) -> bool
Return whether an object satisfies every configured filter.
Trait Implementations§
Source§impl Clone for KnowledgeQuery
impl Clone for KnowledgeQuery
Source§fn clone(&self) -> KnowledgeQuery
fn clone(&self) -> KnowledgeQuery
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 KnowledgeQuery
impl Debug for KnowledgeQuery
Source§impl Default for KnowledgeQuery
impl Default for KnowledgeQuery
Source§fn default() -> KnowledgeQuery
fn default() -> KnowledgeQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for KnowledgeQuery
impl Freeze for KnowledgeQuery
impl Move for KnowledgeQuery
impl RefUnwindSafe for KnowledgeQuery
impl Send for KnowledgeQuerywhere
RawVecInner: Send,
impl Sync for KnowledgeQuerywhere
RawVecInner: Sync,
impl Unpin for KnowledgeQuery
impl UnsafeUnpin for KnowledgeQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KnowledgeQuerywhere
RawVecInner: UnwindSafe,
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> 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