Struct paystack::CreateSubaccountBodyBuilder
source · pub struct CreateSubaccountBodyBuilder { /* private fields */ }
Expand description
Builder for CreateSubaccountBody
.
Implementations§
source§impl CreateSubaccountBodyBuilder
impl CreateSubaccountBodyBuilder
sourcepub fn business_name(&mut self, value: String) -> &mut Self
pub fn business_name(&mut self, value: String) -> &mut Self
Name of business for subaccount
sourcepub fn settlement_bank(&mut self, value: String) -> &mut Self
pub fn settlement_bank(&mut self, value: String) -> &mut Self
Bank Code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint.
sourcepub fn account_number(&mut self, value: String) -> &mut Self
pub fn account_number(&mut self, value: String) -> &mut Self
Bank Account Number
sourcepub fn percentage_charge(&mut self, value: f32) -> &mut Self
pub fn percentage_charge(&mut self, value: f32) -> &mut Self
The default percentage charged when receiving on behalf of this subaccount
sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
A description for this subaccount
sourcepub fn primary_contact_email(&mut self, value: Option<String>) -> &mut Self
pub fn primary_contact_email(&mut self, value: Option<String>) -> &mut Self
A contact email for the subaccount
sourcepub fn primary_contact_name(&mut self, value: Option<String>) -> &mut Self
pub fn primary_contact_name(&mut self, value: Option<String>) -> &mut Self
A name for the contact person for this subaccount
sourcepub fn primary_contact_phone(&mut self, value: Option<String>) -> &mut Self
pub fn primary_contact_phone(&mut self, value: Option<String>) -> &mut Self
A phone number to call for this subaccount
sourcepub fn metadata(&mut self, value: Option<String>) -> &mut Self
pub fn metadata(&mut self, value: Option<String>) -> &mut Self
Stringified JSON object. Add a custom_fields attribute which has an array of objects if you would like the fields to be added to your transaction when displayed on the dashboard. Sample: {“custom_fields”:[{“display_name”:“Cart ID”,“variable_name”: “cart_id”,“value”: “8393”}]}
sourcepub fn build(
&self
) -> Result<CreateSubaccountBody, CreateSubaccountBodyBuilderError>
pub fn build( &self ) -> Result<CreateSubaccountBody, CreateSubaccountBodyBuilderError>
Trait Implementations§
source§impl Clone for CreateSubaccountBodyBuilder
impl Clone for CreateSubaccountBodyBuilder
source§fn clone(&self) -> CreateSubaccountBodyBuilder
fn clone(&self) -> CreateSubaccountBodyBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for CreateSubaccountBodyBuilder
impl Send for CreateSubaccountBodyBuilder
impl Sync for CreateSubaccountBodyBuilder
impl Unpin for CreateSubaccountBodyBuilder
impl UnwindSafe for CreateSubaccountBodyBuilder
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