pub struct RedeemEthParams {
pub amount: Decimal,
pub asset: Option<String>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [redeem_eth] operation.
This struct holds all of the inputs you can pass when calling
redeem_eth.
Fields§
§amount: DecimalAmount in SOL.
This field is **required.
asset: Option<String>WBETH or BETH, default to BETH
This field is **optional.
recv_window: Option<i64>The recv_window parameter.
This field is **optional.
Implementations§
Source§impl RedeemEthParams
impl RedeemEthParams
Sourcepub fn builder(amount: Decimal) -> RedeemEthParamsBuilder
pub fn builder(amount: Decimal) -> RedeemEthParamsBuilder
Create a builder for [redeem_eth].
Required parameters:
amount— Amount in SOL.
Trait Implementations§
Source§impl Clone for RedeemEthParams
impl Clone for RedeemEthParams
Source§fn clone(&self) -> RedeemEthParams
fn clone(&self) -> RedeemEthParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RedeemEthParams
impl RefUnwindSafe for RedeemEthParams
impl Send for RedeemEthParams
impl Sync for RedeemEthParams
impl Unpin for RedeemEthParams
impl UnsafeUnpin for RedeemEthParams
impl UnwindSafe for RedeemEthParams
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