Struct rhoast_client::http::Http
source · pub struct Http {
pub host: String,
}
Fields§
§host: String
Implementations§
source§impl Http
impl Http
pub async fn block_call( &self, options: BlockOptions ) -> Result<Vec<LightBlockInfo>, Error>
pub async fn latest_block_call(&self) -> Result<Vec<LightBlockInfo>, Error>
pub async fn limit_block_call( &self, options: BlockPostion ) -> Result<Vec<LightBlockInfo>, Error>
pub async fn hash_block_call(&self, hash: &String) -> Result<BlockInfo, Error>
pub async fn last_finalized_block(&self) -> Result<BlockInfo, Error>
pub async fn is_finalized_block(&self, hash: &String) -> Result<bool, Error>
pub async fn valid_after_block_number(&self) -> Result<i32, Error>
source§impl Http
impl Http
pub async fn data_at_name<C: DataAtName + Serialize>( &self, options: C ) -> Result<String, Error>
source§impl Http
impl Http
pub async fn deploy( &self, options: DeployDataRequest, timeout: Option<Duration> ) -> Result<DeployResponse, Error>
pub async fn deploy_with_deployid( &self, deploy_id: &String ) -> Result<Vec<LightBlockInfo>, Error>
pub async fn easy_deploy( &self, options: EasyDeploy ) -> Result<DeployResponse, Error>
pub async fn prepare_deploy( &self, options: PrepareDeployOptions ) -> Result<PrepareDeployResponse, Error>
source§impl Http
impl Http
pub async fn explore_deploy( &self, options: ExploreDataOptions ) -> Result<String, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl UnwindSafe for Http
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request