Struct vit_servicing_station_tests_f10::common::clients::rest::RawRestClient
source · pub struct RawRestClient {
path_builder: RestPathBuilder,
api_token: Option<String>,
logger: RestClientLogger,
origin: Option<String>,
}
Fields§
§path_builder: RestPathBuilder
§api_token: Option<String>
§logger: RestClientLogger
§origin: Option<String>
Implementations§
source§impl RestClient
impl RestClient
pub fn new(url: Url) -> Self
pub fn health(&self) -> Result<Response, Error>
pub fn funds(&self) -> Result<Response, Error>
pub fn proposals(&self) -> Result<Response, Error>
pub fn put_snapshot( &self, tag: &str, content: String ) -> Result<Response, Error>
pub fn voting_power(&self, tag: &str, key: &str) -> Result<Response, Error>
pub fn proposal(&self, id: &str) -> Result<Response, Error>
pub fn proposals_by_voteplan_id_and_index( &self, request_as_string: &str ) -> Result<Response, Error>
pub fn fund(&self, id: &str) -> Result<Response, Error>
pub fn challenges(&self) -> Result<Response, Error>
pub fn genesis(&self) -> Result<Response, Error>
pub fn service_version(&self) -> Result<Response, Error>
pub fn advisor_reviews(&self, proposal_id: &str) -> Result<Response, Error>
pub fn client(&self) -> Result<Client, Error>
pub fn set_api_token(&mut self, token: String)
pub fn set_origin<S: Into<String>>(&mut self, origin: S)
pub fn disable_log(&mut self)
pub fn enable_log(&mut self)
pub fn log_response(&self, response: &Response)
pub fn log_text(&self, content: &str)
pub fn path_builder(&self) -> &RestPathBuilder
fn post(&self, path: &str, data: String) -> Result<Response, Error>
fn get(&self, path: &str) -> Result<Response, Error>
fn put(&self, path: &str, body: String) -> Result<Response, Error>
Trait Implementations§
source§impl Clone for RestClient
impl Clone for RestClient
source§fn clone(&self) -> RestClient
fn clone(&self) -> RestClient
Returns a copy 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 RestClient
impl Debug for RestClient
source§impl Into<RestClient> for RestClient
impl Into<RestClient> for RestClient
source§fn into(self) -> RawRestClient
fn into(self) -> RawRestClient
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for RestClient
impl Send for RestClient
impl Sync for RestClient
impl Unpin for RestClient
impl UnwindSafe for RestClient
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