pub struct GenerationSpec {
pub strategy: GenerationStrategy,
pub dimensions: Vec<GenerationDimension>,
pub max_variants: Option<usize>,
}Fields§
§strategy: GenerationStrategy§dimensions: Vec<GenerationDimension>§max_variants: Option<usize>Implementations§
Source§impl GenerationSpec
impl GenerationSpec
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for GenerationSpec
impl Clone for GenerationSpec
Source§fn clone(&self) -> GenerationSpec
fn clone(&self) -> GenerationSpec
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 GenerationSpec
impl Debug for GenerationSpec
Source§impl Default for GenerationSpec
impl Default for GenerationSpec
Source§fn default() -> GenerationSpec
fn default() -> GenerationSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerationSpec
impl<'de> Deserialize<'de> for GenerationSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenerationSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenerationSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GenerationSpec
impl PartialEq for GenerationSpec
Source§fn eq(&self, other: &GenerationSpec) -> bool
fn eq(&self, other: &GenerationSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GenerationSpec
impl Serialize for GenerationSpec
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 GenerationSpec
Auto Trait Implementations§
impl Freeze for GenerationSpec
impl RefUnwindSafe for GenerationSpec
impl Send for GenerationSpec
impl Sync for GenerationSpec
impl Unpin for GenerationSpec
impl UnsafeUnpin for GenerationSpec
impl UnwindSafe for GenerationSpec
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