pub struct DataSourceConfigCustom {
pub item_schema: HashMap<String, Value>,
pub type_: String,
pub include_sample_schema: Option<bool>,
}Expand description
A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs.
Fields§
§item_schema: HashMap<String, Value>The json schema for each row in the data source.
type_: StringThe type of data source. Always custom.
include_sample_schema: Option<bool>Whether the eval should expect you to populate the sample namespace (ie, by
Trait Implementations§
Source§impl Clone for DataSourceConfigCustom
impl Clone for DataSourceConfigCustom
Source§fn clone(&self) -> DataSourceConfigCustom
fn clone(&self) -> DataSourceConfigCustom
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 DataSourceConfigCustom
impl Debug for DataSourceConfigCustom
Source§impl<'de> Deserialize<'de> for DataSourceConfigCustom
impl<'de> Deserialize<'de> for DataSourceConfigCustom
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
Auto Trait Implementations§
impl Freeze for DataSourceConfigCustom
impl RefUnwindSafe for DataSourceConfigCustom
impl Send for DataSourceConfigCustom
impl Sync for DataSourceConfigCustom
impl Unpin for DataSourceConfigCustom
impl UnsafeUnpin for DataSourceConfigCustom
impl UnwindSafe for DataSourceConfigCustom
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