Struct paystack::ChargeBuilder
source · pub struct ChargeBuilder { /* private fields */ }
Expand description
Builder for the Charge object
Implementations§
source§impl ChargeBuilder
impl ChargeBuilder
Specify the charge Authorization Code
sourcepub fn transaction_charge(self, transaction_charge: u32) -> Self
pub fn transaction_charge(self, transaction_charge: u32) -> Self
Specify charge transaction charge
sourcepub fn build(self) -> PaystackResult<Charge>
pub fn build(self) -> PaystackResult<Charge>
Build the Charge object
Trait Implementations§
source§impl Clone for ChargeBuilder
impl Clone for ChargeBuilder
source§fn clone(&self) -> ChargeBuilder
fn clone(&self) -> ChargeBuilder
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 Default for ChargeBuilder
impl Default for ChargeBuilder
source§fn default() -> ChargeBuilder
fn default() -> ChargeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChargeBuilder
impl Send for ChargeBuilder
impl Sync for ChargeBuilder
impl Unpin for ChargeBuilder
impl UnwindSafe for ChargeBuilder
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