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 Freeze for SendEventBodyBuilder
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