pub struct OutputSchema {
pub fields: Vec<StructField>,
}Expand description
Runtime representation of an output schema
Fields§
§fields: Vec<StructField>Implementations§
Source§impl OutputSchema
impl OutputSchema
pub fn from_output_type( output_type: &OutputType, structs: &HashMap<String, Vec<StructField>>, ) -> Result<Self, String>
pub fn to_json_schema(&self) -> Value
Trait Implementations§
Source§impl Clone for OutputSchema
impl Clone for OutputSchema
Source§fn clone(&self) -> OutputSchema
fn clone(&self) -> OutputSchema
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 moreSource§impl Debug for OutputSchema
impl Debug for OutputSchema
Source§impl PartialEq for OutputSchema
impl PartialEq for OutputSchema
impl StructuralPartialEq for OutputSchema
Auto Trait Implementations§
impl Freeze for OutputSchema
impl RefUnwindSafe for OutputSchema
impl Send for OutputSchema
impl Sync for OutputSchema
impl Unpin for OutputSchema
impl UnwindSafe for OutputSchema
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