pub struct AllocationPlanEntry {
pub target_id: TargetId,
pub amount: u128,
}Fields§
§target_id: TargetId§amount: u128Implementations§
Trait Implementations§
Source§impl BorshDeserialize for AllocationPlanEntry
impl BorshDeserialize for AllocationPlanEntry
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSchema for AllocationPlanEntry
impl BorshSchema for AllocationPlanEntry
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for AllocationPlanEntry
impl BorshSerialize for AllocationPlanEntry
Source§impl Clone for AllocationPlanEntry
impl Clone for AllocationPlanEntry
Source§fn clone(&self) -> AllocationPlanEntry
fn clone(&self) -> AllocationPlanEntry
Returns a copy of the value. Read more
1.0.0 · 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 AllocationPlanEntry
impl Debug for AllocationPlanEntry
Source§impl<'de> Deserialize<'de> for AllocationPlanEntry
impl<'de> Deserialize<'de> for AllocationPlanEntry
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 AllocationPlanEntry
impl PartialEq for AllocationPlanEntry
Source§impl Serialize for AllocationPlanEntry
impl Serialize for AllocationPlanEntry
impl Copy for AllocationPlanEntry
impl Eq for AllocationPlanEntry
impl StructuralPartialEq for AllocationPlanEntry
Auto Trait Implementations§
impl Freeze for AllocationPlanEntry
impl RefUnwindSafe for AllocationPlanEntry
impl Send for AllocationPlanEntry
impl Sync for AllocationPlanEntry
impl Unpin for AllocationPlanEntry
impl UnwindSafe for AllocationPlanEntry
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