sui_rpc_api::client

Trait ResponseExt

pub trait ResponseExt: Sealed {
    // Required methods
    fn chain_id(&self) -> Option<CheckpointDigest>;
    fn chain(&self) -> Option<&str>;
    fn epoch(&self) -> Option<u64>;
    fn checkpoint_height(&self) -> Option<u64>;
    fn timestamp_ms(&self) -> Option<u64>;
    fn timestamp(&self) -> Option<&str>;
    fn lowest_available_checkpoint(&self) -> Option<u64>;
    fn lowest_available_checkpoint_objects(&self) -> Option<u64>;
}
Expand description

Extension trait used to facilitate retrieval of Sui specific data from responses

Required Methods§

fn chain_id(&self) -> Option<CheckpointDigest>

fn chain(&self) -> Option<&str>

fn epoch(&self) -> Option<u64>

fn checkpoint_height(&self) -> Option<u64>

fn timestamp_ms(&self) -> Option<u64>

fn timestamp(&self) -> Option<&str>

fn lowest_available_checkpoint(&self) -> Option<u64>

fn lowest_available_checkpoint_objects(&self) -> Option<u64>

Implementations on Foreign Types§

§

impl ResponseExt for HeaderMap

§

fn chain_id(&self) -> Option<CheckpointDigest>

§

fn chain(&self) -> Option<&str>

§

fn epoch(&self) -> Option<u64>

§

fn checkpoint_height(&self) -> Option<u64>

§

fn timestamp_ms(&self) -> Option<u64>

§

fn timestamp(&self) -> Option<&str>

§

fn lowest_available_checkpoint(&self) -> Option<u64>

§

fn lowest_available_checkpoint_objects(&self) -> Option<u64>

§

impl ResponseExt for MetadataMap

§

fn chain_id(&self) -> Option<CheckpointDigest>

§

fn chain(&self) -> Option<&str>

§

fn epoch(&self) -> Option<u64>

§

fn checkpoint_height(&self) -> Option<u64>

§

fn timestamp_ms(&self) -> Option<u64>

§

fn timestamp(&self) -> Option<&str>

§

fn lowest_available_checkpoint(&self) -> Option<u64>

§

fn lowest_available_checkpoint_objects(&self) -> Option<u64>

§

impl ResponseExt for Status

§

fn chain_id(&self) -> Option<CheckpointDigest>

§

fn chain(&self) -> Option<&str>

§

fn epoch(&self) -> Option<u64>

§

fn checkpoint_height(&self) -> Option<u64>

§

fn timestamp_ms(&self) -> Option<u64>

§

fn timestamp(&self) -> Option<&str>

§

fn lowest_available_checkpoint(&self) -> Option<u64>

§

fn lowest_available_checkpoint_objects(&self) -> Option<u64>

§

impl<T> ResponseExt for Response<T>

§

fn chain_id(&self) -> Option<CheckpointDigest>

§

fn chain(&self) -> Option<&str>

§

fn epoch(&self) -> Option<u64>

§

fn checkpoint_height(&self) -> Option<u64>

§

fn timestamp_ms(&self) -> Option<u64>

§

fn timestamp(&self) -> Option<&str>

§

fn lowest_available_checkpoint(&self) -> Option<u64>

§

fn lowest_available_checkpoint_objects(&self) -> Option<u64>

Implementors§