pub struct SetSoftStakingParams {
pub soft_staking: bool,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [set_soft_staking] operation.
This struct holds all of the inputs you can pass when calling
set_soft_staking.
Fields§
§soft_staking: boolThe soft_staking parameter.
This field is **required.
recv_window: Option<i64>Request validity window in milliseconds.
This field is **optional.
Implementations§
Source§impl SetSoftStakingParams
impl SetSoftStakingParams
Sourcepub fn builder(soft_staking: bool) -> SetSoftStakingParamsBuilder
pub fn builder(soft_staking: bool) -> SetSoftStakingParamsBuilder
Create a builder for [set_soft_staking].
Required parameters:
soft_staking— bool
Trait Implementations§
Source§impl Clone for SetSoftStakingParams
impl Clone for SetSoftStakingParams
Source§fn clone(&self) -> SetSoftStakingParams
fn clone(&self) -> SetSoftStakingParams
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 SetSoftStakingParams
impl Debug for SetSoftStakingParams
Source§impl<'de> Deserialize<'de> for SetSoftStakingParams
impl<'de> Deserialize<'de> for SetSoftStakingParams
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 SetSoftStakingParams
impl RefUnwindSafe for SetSoftStakingParams
impl Send for SetSoftStakingParams
impl Sync for SetSoftStakingParams
impl Unpin for SetSoftStakingParams
impl UnsafeUnpin for SetSoftStakingParams
impl UnwindSafe for SetSoftStakingParams
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