pub struct SubscribeSolStakingParams {
pub amount: Decimal,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [subscribe_sol_staking] operation.
This struct holds all of the inputs you can pass when calling
subscribe_sol_staking.
Fields§
§amount: DecimalAmount in SOL.
This field is **required.
recv_window: Option<i64>Request validity window in milliseconds.
This field is **optional.
Implementations§
Source§impl SubscribeSolStakingParams
impl SubscribeSolStakingParams
Sourcepub fn builder(amount: Decimal) -> SubscribeSolStakingParamsBuilder
pub fn builder(amount: Decimal) -> SubscribeSolStakingParamsBuilder
Create a builder for [subscribe_sol_staking].
Required parameters:
amount— Amount in SOL.
Trait Implementations§
Source§impl Clone for SubscribeSolStakingParams
impl Clone for SubscribeSolStakingParams
Source§fn clone(&self) -> SubscribeSolStakingParams
fn clone(&self) -> SubscribeSolStakingParams
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 moreSource§impl Debug for SubscribeSolStakingParams
impl Debug for SubscribeSolStakingParams
Source§impl<'de> Deserialize<'de> for SubscribeSolStakingParams
impl<'de> Deserialize<'de> for SubscribeSolStakingParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubscribeSolStakingParams
impl RefUnwindSafe for SubscribeSolStakingParams
impl Send for SubscribeSolStakingParams
impl Sync for SubscribeSolStakingParams
impl Unpin for SubscribeSolStakingParams
impl UnsafeUnpin for SubscribeSolStakingParams
impl UnwindSafe for SubscribeSolStakingParams
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