pub struct WeightsPayload {
pub magic: String,
pub version: u32,
pub weights: BTreeMap<String, f64>,
pub delta_history: Vec<BTreeMap<String, f64>>,
pub extra: BTreeMap<String, Value>,
pub checksum: String,
}Expand description
Data structure representing weights payload.
Fields§
§magic: StringMagic for this value.
version: u32Version for this value.
weights: BTreeMap<String, f64>Mapping of weights.
delta_history: Vec<BTreeMap<String, f64>>Collection of delta history.
extra: BTreeMap<String, Value>Mapping of extra.
checksum: StringChecksum for this value.
Trait Implementations§
Source§impl Clone for WeightsPayload
impl Clone for WeightsPayload
Source§impl Debug for WeightsPayload
impl Debug for WeightsPayload
Source§impl<'de> Deserialize<'de> for WeightsPayload
impl<'de> Deserialize<'de> for WeightsPayload
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 WeightsPayload
impl PartialEq for WeightsPayload
Source§impl Serialize for WeightsPayload
impl Serialize for WeightsPayload
impl StructuralPartialEq for WeightsPayload
Auto Trait Implementations§
impl Forget for WeightsPayload
impl Freeze for WeightsPayloadwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, f64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, f64)>>: Freeze,
PhantomData<BTreeMap<String, f64>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for WeightsPayload
impl RefUnwindSafe for WeightsPayload
impl Send for WeightsPayload
impl Sync for WeightsPayload
impl Unpin for WeightsPayload
impl UnsafeUnpin for WeightsPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
PhantomData<BTreeMap<String, f64>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for WeightsPayloadwhere
RawVecInner: UnwindSafe,
BTreeMap<String, f64>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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