pub struct SubaccountBody {
pub subaccount: String,
pub share: f32,
}
Expand description
This struct represents the subaccount.
It can be used as the payload for the API end points that require a subaccount as a payload.
It is also possible to extract a single field from this struct to use as well.
The Struct is constructed using the SubaccountBodyBuilder
Fields§
§subaccount: String
This is the subaccount code
This is the transaction share for the subaccount
Trait Implementations§
Source§impl Clone for SubaccountBody
impl Clone for SubaccountBody
Source§fn clone(&self) -> SubaccountBody
fn clone(&self) -> SubaccountBody
Returns a duplicate 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 SubaccountBody
impl Debug for SubaccountBody
Source§impl Default for SubaccountBody
impl Default for SubaccountBody
Source§fn default() -> SubaccountBody
fn default() -> SubaccountBody
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubaccountBody
impl RefUnwindSafe for SubaccountBody
impl Send for SubaccountBody
impl Sync for SubaccountBody
impl Unpin for SubaccountBody
impl UnwindSafe for SubaccountBody
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