Struct paystack::SubaccountBody
source · 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 SubaccountBuilder
Fields§
§subaccount: String
This is the sub account 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 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 SubaccountBody
impl Debug for SubaccountBody
Auto Trait Implementations§
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