pub enum UnstructuredOutput<'a> {
Inline(&'a SchemaValue),
Url(&'a str),
}Expand description
A decoded unstructured output value, classified against its schema.
Variants§
Inline(&'a SchemaValue)
An inline payload, validated to match the schema’s kind: guaranteed to
be a SchemaValue::Text for a text output or SchemaValue::Binary for a
binary output (whether the schema is the canonical wrapper or a bare
rich scalar).
Url(&'a str)
A URL reference (only the canonical wrapper’s url case yields this).
Auto Trait Implementations§
impl<'a> Freeze for UnstructuredOutput<'a>
impl<'a> RefUnwindSafe for UnstructuredOutput<'a>
impl<'a> Send for UnstructuredOutput<'a>
impl<'a> Sync for UnstructuredOutput<'a>
impl<'a> Unpin for UnstructuredOutput<'a>
impl<'a> UnsafeUnpin for UnstructuredOutput<'a>
impl<'a> UnwindSafe for UnstructuredOutput<'a>
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