pub struct GetSlotParams {
pub commitment: Option<CommitmentLevel>,
pub min_context_slot: Option<Slot>,
}Expand description
The parameters for a Solana getSlot RPC method call.
Fields§
§commitment: Option<CommitmentLevel>The request returns the slot that has reached this or the default commitment level.
min_context_slot: Option<Slot>The minimum slot that the request can be evaluated at.
Trait Implementations§
Source§impl CandidType for GetSlotParams
impl CandidType for GetSlotParams
Source§impl Clone for GetSlotParams
impl Clone for GetSlotParams
Source§fn clone(&self) -> GetSlotParams
fn clone(&self) -> GetSlotParams
Returns a duplicate of the value. Read more
1.0.0 · 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 GetSlotParams
impl Debug for GetSlotParams
Source§impl Default for GetSlotParams
impl Default for GetSlotParams
Source§fn default() -> GetSlotParams
fn default() -> GetSlotParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetSlotParams
impl<'de> Deserialize<'de> for GetSlotParams
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
Source§impl PartialEq for GetSlotParams
impl PartialEq for GetSlotParams
Source§impl Serialize for GetSlotParams
impl Serialize for GetSlotParams
impl StructuralPartialEq for GetSlotParams
Auto Trait Implementations§
impl Freeze for GetSlotParams
impl RefUnwindSafe for GetSlotParams
impl Send for GetSlotParams
impl Sync for GetSlotParams
impl Unpin for GetSlotParams
impl UnwindSafe for GetSlotParams
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