Struct fireblocks_sdk::types::staking::StakingPosition

source ·
pub struct StakingPosition {
Show 13 fields pub id: String, pub provider_id: String, pub vault_account_id: u64, pub validator_name: String, pub provider_name: String, pub chain_descriptor: String, pub amount: BigDecimal, pub rewards_amount: BigDecimal, pub date_created: DateTime<Utc>, pub in_progress: bool, pub in_progress_tx_id: Option<String>, pub validator_address: String, pub available_actions: Vec<String>,
}

Fields§

§id: String

The unique identifier of the staking position

§provider_id: String

The unique identifier of the staking provider

§vault_account_id: u64

The source vault account to stake from.

§validator_name: String

The destination validator address name.

§provider_name: String

The destination validator provider name.

§chain_descriptor: String

The blockchain descriptor to use.

§amount: BigDecimal

Amount of tokens to stake.

§rewards_amount: BigDecimal

The amount staked in the position, measured in the blockchain descriptor unit.

§date_created: DateTime<Utc>

When was the request made (ISO Date).

§in_progress: bool

The current status. An array of transaction objects related to this position. Each object includes a ‘txId’ representing the transaction ID and a ‘isSuccessful’ boolean indicating if the transaction was successful. Indicates whether there is an ongoing action for this position (true if ongoing, false if not).

§in_progress_tx_id: Option<String>

The transaction ID of the ongoing request

§validator_address: String

Additional fields per blockchain - can be empty or missing if not initialized or no additional info exists. The type depends on the chainDescriptor value. For Solana (SOL), stake account address. For Ethereum (ETH), an empty object is returned as no specific data is available. The destination address of the staking transaction.

§available_actions: Vec<String>

An array of available actions that can be performed. for example, actions like “unstake” or “withdraw”.

Trait Implementations§

source§

impl Debug for StakingPosition

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for StakingPosition

source§

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§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,