pub enum QueryModelOutputV2 {
Positional {
slots: Vec<QueryModelOutputSlotV2>,
},
Named {
slots: Vec<QueryNamedOutputSlotV2>,
},
}Expand description
Positional or named model-query output shape.
Variants§
Positional
Tuple-like members in public order.
Fields
§
slots: Vec<QueryModelOutputSlotV2>Public slots.
Named
Record-like members in public order.
Fields
§
slots: Vec<QueryNamedOutputSlotV2>Public named slots.
Implementations§
Source§impl QueryModelOutputV2
impl QueryModelOutputV2
Sourcepub fn slots(&self) -> Vec<&QueryModelOutputSlotV2>
pub fn slots(&self) -> Vec<&QueryModelOutputSlotV2>
Return model output slots in public order.
Named output metadata remains available on the enum; this allocation is a small bounded view used by response-shape validators.
Trait Implementations§
Source§impl Clone for QueryModelOutputV2
impl Clone for QueryModelOutputV2
Source§fn clone(&self) -> QueryModelOutputV2
fn clone(&self) -> QueryModelOutputV2
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 QueryModelOutputV2
impl Debug for QueryModelOutputV2
Source§impl<'de> Deserialize<'de> for QueryModelOutputV2
impl<'de> Deserialize<'de> for QueryModelOutputV2
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
impl Eq for QueryModelOutputV2
Source§impl PartialEq for QueryModelOutputV2
impl PartialEq for QueryModelOutputV2
Source§impl Serialize for QueryModelOutputV2
impl Serialize for QueryModelOutputV2
impl StructuralPartialEq for QueryModelOutputV2
Auto Trait Implementations§
impl Freeze for QueryModelOutputV2
impl RefUnwindSafe for QueryModelOutputV2
impl Send for QueryModelOutputV2
impl Sync for QueryModelOutputV2
impl Unpin for QueryModelOutputV2
impl UnsafeUnpin for QueryModelOutputV2
impl UnwindSafe for QueryModelOutputV2
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