pub struct DataViewPolicy {
pub fit_partition: DataRequestPartition,
pub predict_partition: DataRequestPartition,
pub include_augmented_train: bool,
pub include_augmented_validation: bool,
pub include_excluded: bool,
pub require_sample_ids: bool,
pub unsafe_flags: BTreeSet<String>,
}Fields§
§fit_partition: DataRequestPartition§predict_partition: DataRequestPartition§include_augmented_train: bool§include_augmented_validation: bool§include_excluded: bool§require_sample_ids: bool§unsafe_flags: BTreeSet<String>Implementations§
Source§impl DataViewPolicy
impl DataViewPolicy
pub const ALLOW_FIT_CV_FULL_TRAIN_VIEW: &'static str = "allow_fit_cv_full_train_view"
pub const ALLOW_FIT_CV_VALIDATION_VIEW: &'static str = "allow_fit_cv_validation_view"
pub const ALLOW_AUGMENTED_VALIDATION_VIEW: &'static str = "allow_augmented_validation_view"
pub const ALLOW_EXCLUDED_ROWS: &'static str = "allow_excluded_rows"
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for DataViewPolicy
impl Clone for DataViewPolicy
Source§fn clone(&self) -> DataViewPolicy
fn clone(&self) -> DataViewPolicy
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 DataViewPolicy
impl Debug for DataViewPolicy
Source§impl Default for DataViewPolicy
impl Default for DataViewPolicy
Source§fn default() -> DataViewPolicy
fn default() -> DataViewPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataViewPolicy
impl<'de> Deserialize<'de> for DataViewPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataViewPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataViewPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DataViewPolicy
Source§impl PartialEq for DataViewPolicy
impl PartialEq for DataViewPolicy
Source§fn eq(&self, other: &DataViewPolicy) -> bool
fn eq(&self, other: &DataViewPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DataViewPolicy
impl Serialize for DataViewPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DataViewPolicy
Auto Trait Implementations§
impl Freeze for DataViewPolicy
impl RefUnwindSafe for DataViewPolicy
impl Send for DataViewPolicy
impl Sync for DataViewPolicy
impl Unpin for DataViewPolicy
impl UnsafeUnpin for DataViewPolicy
impl UnwindSafe for DataViewPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.