Skip to main content

ResponseExt

Trait ResponseExt 

Source
pub trait ResponseExt: Sealed {
    // Required methods
    fn chain_id(&self) -> Option<Digest>;
    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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ResponseExt for HeaderMap

Source§

impl ResponseExt for MetadataMap

Source§

impl ResponseExt for Status

Source§

impl<T> ResponseExt for Response<T>

Implementors§