pub struct GetOnChainYieldsLockedSubscriptionPreviewParams {
pub project_id: String,
pub amount: Decimal,
pub auto_subscribe: Option<bool>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [get_on_chain_yields_locked_subscription_preview] operation.
This struct holds all of the inputs you can pass when calling
get_on_chain_yields_locked_subscription_preview.
Fields§
§project_id: StringThe project_id parameter.
This field is **required.
amount: DecimalAmount in SOL.
This field is **required.
auto_subscribe: Option<bool>true or false, default true.
This field is **optional.
recv_window: Option<i64>The recv_window parameter.
This field is **optional.
Implementations§
Source§impl GetOnChainYieldsLockedSubscriptionPreviewParams
impl GetOnChainYieldsLockedSubscriptionPreviewParams
Sourcepub fn builder(
project_id: String,
amount: Decimal,
) -> GetOnChainYieldsLockedSubscriptionPreviewParamsBuilder
pub fn builder( project_id: String, amount: Decimal, ) -> GetOnChainYieldsLockedSubscriptionPreviewParamsBuilder
Create a builder for [get_on_chain_yields_locked_subscription_preview].
Required parameters:
project_id— Stringamount— Amount in SOL.
Trait Implementations§
Source§impl Clone for GetOnChainYieldsLockedSubscriptionPreviewParams
impl Clone for GetOnChainYieldsLockedSubscriptionPreviewParams
Source§fn clone(&self) -> GetOnChainYieldsLockedSubscriptionPreviewParams
fn clone(&self) -> GetOnChainYieldsLockedSubscriptionPreviewParams
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 GetOnChainYieldsLockedSubscriptionPreviewParams
impl RefUnwindSafe for GetOnChainYieldsLockedSubscriptionPreviewParams
impl Send for GetOnChainYieldsLockedSubscriptionPreviewParams
impl Sync for GetOnChainYieldsLockedSubscriptionPreviewParams
impl Unpin for GetOnChainYieldsLockedSubscriptionPreviewParams
impl UnsafeUnpin for GetOnChainYieldsLockedSubscriptionPreviewParams
impl UnwindSafe for GetOnChainYieldsLockedSubscriptionPreviewParams
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