pub struct ResolveRequest {
pub query: String,
pub namespace: String,
pub trust: String,
pub candidates: Vec<Candidate>,
pub local_sample: Vec<f32>,
pub latency_budget_ms: Option<u32>,
pub commit_cid: Cid,
}Expand description
Request payload for resolve_or_create.
Fields§
§query: StringThe surface-form string to resolve.
namespace: StringNamespace (e.g. “person”, “company”).
trust: StringTrust label (e.g. “verified”).
candidates: Vec<Candidate>Candidates pre-sampled from the HNSW walk. In a real pipeline this is populated by the caller from the canonicalization HNSW handle keyed by the commit-derived seed.
local_sample: Vec<f32>HNSW-local cosine sample for threshold derivation. Must be at
least MIN_SAMPLE_SIZE long; shorter samples return
ResolveResult::Refused.
latency_budget_ms: Option<u32>Caller-supplied latency budget override. None means use
RESOLVE_OR_CREATE_P99_MS.
commit_cid: CidThe commit the resolve is happening under (for HNSW seed + guard envelope).
Trait Implementations§
Source§impl Clone for ResolveRequest
impl Clone for ResolveRequest
Source§fn clone(&self) -> ResolveRequest
fn clone(&self) -> ResolveRequest
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 moreAuto Trait Implementations§
impl Freeze for ResolveRequest
impl RefUnwindSafe for ResolveRequest
impl Send for ResolveRequest
impl Sync for ResolveRequest
impl Unpin for ResolveRequest
impl UnsafeUnpin for ResolveRequest
impl UnwindSafe for ResolveRequest
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