pub struct SabrePayloadBuilder { /* private fields */ }Expand description
Builder used to create SabrePayload
Implementations§
Source§impl SabrePayloadBuilder
impl SabrePayloadBuilder
pub fn new() -> Self
pub fn with_action(self, action: Action) -> SabrePayloadBuilder
pub fn build(self) -> Result<SabrePayload, SabrePayloadBuildError>
Sourcepub fn into_transaction_builder(
self,
) -> Result<TransactionBuilder, SabrePayloadBuildError>
pub fn into_transaction_builder( self, ) -> Result<TransactionBuilder, SabrePayloadBuildError>
Convert the SabrePayloadBuilder into a TransactionBuilder, filling in all required
fields.
Trait Implementations§
Source§impl Clone for SabrePayloadBuilder
impl Clone for SabrePayloadBuilder
Source§fn clone(&self) -> SabrePayloadBuilder
fn clone(&self) -> SabrePayloadBuilder
Returns a duplicate 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 SabrePayloadBuilder
impl Default for SabrePayloadBuilder
Source§fn default() -> SabrePayloadBuilder
fn default() -> SabrePayloadBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SabrePayloadBuilder
impl RefUnwindSafe for SabrePayloadBuilder
impl Send for SabrePayloadBuilder
impl Sync for SabrePayloadBuilder
impl Unpin for SabrePayloadBuilder
impl UnwindSafe for SabrePayloadBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.