Struct paystack::SubaccountResponse
source · pub struct SubaccountResponse {
pub id: u32,
pub subaccount_code: String,
pub business_name: String,
pub description: String,
pub primary_contact_name: Option<String>,
pub primary_contact_email: Option<String>,
pub primary_contact_phone: Option<String>,
pub metadata: Option<String>,
pub percentage_charge: u32,
pub settlement_bank: String,
pub account_number: String,
}Expand description
Represents a subaccount in the percentage split data.
Fields§
§id: u32The ID of the subaccount.
subaccount_code: StringThe code of the subaccount.
business_name: StringThe name of the business associated with the subaccount.
description: StringThe description of the business associated with the subaccount.
primary_contact_name: Option<String>The name of the primary contact for the business, if available.
primary_contact_email: Option<String>The email of the primary contact for the business, if available.
primary_contact_phone: Option<String>The phone number of the primary contact for the business, if available.
metadata: Option<String>Additional metadata associated with the subaccount, if available.
percentage_charge: u32The percentage charge for transactions associated with the subaccount.
settlement_bank: StringThe name of the settlement bank for the subaccount.
account_number: StringThe account number of the subaccount.
Trait Implementations§
source§impl Debug for SubaccountResponse
impl Debug for SubaccountResponse
source§impl<'de> Deserialize<'de> for SubaccountResponse
impl<'de> Deserialize<'de> for SubaccountResponse
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
Auto Trait Implementations§
impl RefUnwindSafe for SubaccountResponse
impl Send for SubaccountResponse
impl Sync for SubaccountResponse
impl Unpin for SubaccountResponse
impl UnwindSafe for SubaccountResponse
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