pub struct RedeemSolParamsBuilder { /* private fields */ }Expand description
Builder for RedeemSolParams.
Implementations§
Source§impl RedeemSolParamsBuilder
impl RedeemSolParamsBuilder
Sourcepub fn amount<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
pub fn amount<VALUE: Into<Decimal>>(self, value: VALUE) -> Self
Amount in SOL.
This field is **required.
Sourcepub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The recv_window parameter.
This field is **optional.
Sourcepub fn build(self) -> Result<RedeemSolParams, ParamBuildError>
pub fn build(self) -> Result<RedeemSolParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedeemSolParamsBuilder
impl RefUnwindSafe for RedeemSolParamsBuilder
impl Send for RedeemSolParamsBuilder
impl Sync for RedeemSolParamsBuilder
impl Unpin for RedeemSolParamsBuilder
impl UnsafeUnpin for RedeemSolParamsBuilder
impl UnwindSafe for RedeemSolParamsBuilder
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