Struct paystack::SendEventBodyBuilder
source · pub struct SendEventBodyBuilder { /* private fields */ }
Expand description
Builder for SendEventBody
.
Implementations§
source§impl SendEventBodyBuilder
impl SendEventBodyBuilder
sourcepub fn event_type(&mut self, value: EventType) -> &mut Self
pub fn event_type(&mut self, value: EventType) -> &mut Self
The type of event to push. Currently support invoice
and transaction
sourcepub fn action(&mut self, value: ActionType) -> &mut Self
pub fn action(&mut self, value: ActionType) -> &mut Self
The action the Terminal needs to perform.
sourcepub fn data(&mut self, value: EventData) -> &mut Self
pub fn data(&mut self, value: EventData) -> &mut Self
The parameters needed to perform the specified action.
sourcepub fn build(&self) -> Result<SendEventBody, SendEventBodyBuilderError>
pub fn build(&self) -> Result<SendEventBody, SendEventBodyBuilderError>
Trait Implementations§
source§impl Clone for SendEventBodyBuilder
impl Clone for SendEventBodyBuilder
source§fn clone(&self) -> SendEventBodyBuilder
fn clone(&self) -> SendEventBodyBuilder
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 SendEventBodyBuilder
impl Send for SendEventBodyBuilder
impl Sync for SendEventBodyBuilder
impl Unpin for SendEventBodyBuilder
impl UnwindSafe for SendEventBodyBuilder
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