pub struct GraphFilter {
pub memory_types: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub edge_types: Option<Vec<String>>,
pub min_importance: Option<f32>,
pub max_importance: Option<f32>,
pub created_after: Option<DateTime<Utc>>,
pub created_before: Option<DateTime<Utc>>,
pub min_confidence: Option<f32>,
pub min_score: Option<f32>,
pub limit: Option<usize>,
}Expand description
Filter options for graph queries
Fields§
§memory_types: Option<Vec<String>>Filter by memory types
Filter by tags (any match)
edge_types: Option<Vec<String>>Filter by edge types
min_importance: Option<f32>Minimum importance threshold
max_importance: Option<f32>Maximum importance threshold
created_after: Option<DateTime<Utc>>Created after this date
created_before: Option<DateTime<Utc>>Created before this date
min_confidence: Option<f32>Minimum edge confidence
min_score: Option<f32>Minimum edge score
limit: Option<usize>Maximum number of nodes
Implementations§
Source§impl GraphFilter
impl GraphFilter
pub fn new() -> Self
pub fn with_types(self, types: Vec<String>) -> Self
pub fn with_min_importance(self, min: f32) -> Self
pub fn with_min_confidence(self, min: f32) -> Self
pub fn with_limit(self, limit: usize) -> Self
Trait Implementations§
Source§impl Clone for GraphFilter
impl Clone for GraphFilter
Source§fn clone(&self) -> GraphFilter
fn clone(&self) -> GraphFilter
Returns a duplicate of the value. Read more
1.0.0 · 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 GraphFilter
impl Debug for GraphFilter
Source§impl Default for GraphFilter
impl Default for GraphFilter
Source§fn default() -> GraphFilter
fn default() -> GraphFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphFilter
impl RefUnwindSafe for GraphFilter
impl Send for GraphFilter
impl Sync for GraphFilter
impl Unpin for GraphFilter
impl UnsafeUnpin for GraphFilter
impl UnwindSafe for GraphFilter
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> 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 moreCreates a shared type from an unshared type.