pub struct EmbedResolved {
pub id: String,
pub input: Vec<String>,
pub dimensions: Option<u32>,
pub task: Option<EmbedTask>,
}Expand description
Re-exports of the embed wire types per ADR 0017. Embed lives on
the third inferd socket (separate from v1 and v2); the
proto types are re-exported here so consumers don’t need a separate
inferd-proto dep.
EmbedRequest with semantic validation completed.
dimensions validation against the active backend’s supported set
happens at the backend layer (different models support different
MRL widths), not here.
Fields§
§id: StringCaller-assigned correlation id.
input: Vec<String>Validated input strings.
dimensions: Option<u32>Truncation length, if set.
task: Option<EmbedTask>Task hint, if set.
Trait Implementations§
Source§impl Clone for EmbedResolved
impl Clone for EmbedResolved
Source§fn clone(&self) -> EmbedResolved
fn clone(&self) -> EmbedResolved
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 EmbedResolved
impl Debug for EmbedResolved
Source§impl PartialEq for EmbedResolved
impl PartialEq for EmbedResolved
Source§fn eq(&self, other: &EmbedResolved) -> bool
fn eq(&self, other: &EmbedResolved) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbedResolved
Auto Trait Implementations§
impl Freeze for EmbedResolved
impl RefUnwindSafe for EmbedResolved
impl Send for EmbedResolved
impl Sync for EmbedResolved
impl Unpin for EmbedResolved
impl UnsafeUnpin for EmbedResolved
impl UnwindSafe for EmbedResolved
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