pub struct TrainParameters {
pub distance_type: Option<String>,
pub iterations: Option<u32>,
pub centroids: Option<u32>,
}Fields§
§distance_type: Option<String>The distance type.
iterations: Option<u32>The iterations.
centroids: Option<u32>The centroids.
Implementations§
Source§impl TrainParameters
impl TrainParameters
pub fn new() -> TrainParameters
Trait Implementations§
Source§impl Clone for TrainParameters
impl Clone for TrainParameters
Source§fn clone(&self) -> TrainParameters
fn clone(&self) -> TrainParameters
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 TrainParameters
impl Debug for TrainParameters
Source§impl Default for TrainParameters
impl Default for TrainParameters
Source§fn default() -> TrainParameters
fn default() -> TrainParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrainParameters
impl<'de> Deserialize<'de> for TrainParameters
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
Source§impl PartialEq for TrainParameters
impl PartialEq for TrainParameters
Source§fn eq(&self, other: &TrainParameters) -> bool
fn eq(&self, other: &TrainParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrainParameters
impl Serialize for TrainParameters
impl StructuralPartialEq for TrainParameters
Auto Trait Implementations§
impl Freeze for TrainParameters
impl RefUnwindSafe for TrainParameters
impl Send for TrainParameters
impl Sync for TrainParameters
impl Unpin for TrainParameters
impl UnsafeUnpin for TrainParameters
impl UnwindSafe for TrainParameters
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