sui_rpc_api::client

Trait ResponseExt

Source
pub trait ResponseExt {
    // 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 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§

Implementations on Foreign Types§

Source§

impl ResponseExt for MetadataMap

Source§

impl ResponseExt for Status

Source§

impl<T> ResponseExt for Response<T>

Implementors§