pub struct ListStatementsQuery {
pub subject: Option<String>,
pub predicate: String,
pub kind: Option<String>,
pub min_confidence: f32,
pub only_current: bool,
pub include_tombstoned: bool,
pub limit: Option<u32>,
}Expand description
GET /v1/statements query parameters. All optional.
Fields§
§subject: Option<String>Subject entity id (UUID) filter; omitted → any subject.
predicate: StringPredicate filter; omitted → any predicate.
kind: Option<String>Kind filter (fact, preference, …); omitted → any kind.
min_confidence: f32Minimum confidence (0.0 = no floor).
only_current: boolOnly current (non-superseded) statements (default true).
include_tombstoned: boolInclude tombstoned statements (default false).
limit: Option<u32>Page size; omitted → 100, clamped to 1..=1000.
Implementations§
Source§impl ListStatementsQuery
impl ListStatementsQuery
Sourcepub fn to_request(&self) -> Result<StatementListRequest, String>
pub fn to_request(&self) -> Result<StatementListRequest, String>
Build the wire request. None filters map to the wire’s “no filter”
sentinels ([0;16] subject, 0 kind byte); v1 has no cursor pagination.
Trait Implementations§
Source§impl Debug for ListStatementsQuery
impl Debug for ListStatementsQuery
Source§impl<'de> Deserialize<'de> for ListStatementsQuery
impl<'de> Deserialize<'de> for ListStatementsQuery
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 ListStatementsQuery
impl RefUnwindSafe for ListStatementsQuery
impl Send for ListStatementsQuery
impl Sync for ListStatementsQuery
impl Unpin for ListStatementsQuery
impl UnsafeUnpin for ListStatementsQuery
impl UnwindSafe for ListStatementsQuery
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