pub struct AugmentationPolicy {
pub sample_scope: AugmentationScope,
pub feature_scope: AugmentationScope,
pub require_origin_id: bool,
pub inherit_group: bool,
pub inherit_target: bool,
pub unsafe_flags: BTreeSet<String>,
}Fields§
§sample_scope: AugmentationScope§feature_scope: AugmentationScope§require_origin_id: bool§inherit_group: bool§inherit_target: bool§unsafe_flags: BTreeSet<String>Implementations§
Source§impl AugmentationPolicy
impl AugmentationPolicy
pub const ALLOW_SAMPLE_AUGMENTATION_ALL_PARTITIONS: &'static str = "allow_sample_augmentation_all_partitions"
pub const ALLOW_SAMPLE_AUGMENTATION_WITHOUT_ORIGIN: &'static str = "allow_sample_augmentation_without_origin"
pub const ALLOW_SAMPLE_AUGMENTATION_WITHOUT_GROUP_INHERITANCE: &'static str = "allow_sample_augmentation_without_group_inheritance"
pub const ALLOW_SAMPLE_AUGMENTATION_WITHOUT_TARGET_INHERITANCE: &'static str = "allow_sample_augmentation_without_target_inheritance"
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for AugmentationPolicy
impl Clone for AugmentationPolicy
Source§fn clone(&self) -> AugmentationPolicy
fn clone(&self) -> AugmentationPolicy
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 AugmentationPolicy
impl Debug for AugmentationPolicy
Source§impl Default for AugmentationPolicy
impl Default for AugmentationPolicy
Source§fn default() -> AugmentationPolicy
fn default() -> AugmentationPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AugmentationPolicy
impl<'de> Deserialize<'de> for AugmentationPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AugmentationPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AugmentationPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AugmentationPolicy
Source§impl PartialEq for AugmentationPolicy
impl PartialEq for AugmentationPolicy
Source§fn eq(&self, other: &AugmentationPolicy) -> bool
fn eq(&self, other: &AugmentationPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AugmentationPolicy
impl Serialize for AugmentationPolicy
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 AugmentationPolicy
Auto Trait Implementations§
impl Freeze for AugmentationPolicy
impl RefUnwindSafe for AugmentationPolicy
impl Send for AugmentationPolicy
impl Sync for AugmentationPolicy
impl Unpin for AugmentationPolicy
impl UnsafeUnpin for AugmentationPolicy
impl UnwindSafe for AugmentationPolicy
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.