Struct vit_servicing_station_tests::common::clients::rest::RestClient
source · pub struct RestClient {
raw: RawRestClient,
}
Fields§
§raw: RawRestClient
Implementations§
source§impl RestClient
impl RestClient
pub fn new(url: Url) -> Self
pub fn health(&self) -> Result<(), Error>
pub fn funds(&self) -> Result<Fund, Error>
pub fn path_builder(&self) -> &RestPathBuilder
pub fn put_snapshot_info(&self, snapshot: &Snapshot) -> Result<(), Error>
pub fn put_raw_snapshot(&self, raw_snapshot: &RawSnapshot) -> Result<(), Error>
pub fn proposal(&self, id: &str, group: &str) -> Result<FullProposalInfo, Error>
pub fn proposals(&self, group: &str) -> Result<Vec<FullProposalInfo>, Error>
pub fn voter_info(&self, tag: &str, key: &str) -> Result<VoterInfo, Error>
pub fn delegator_info( &self, tag: &str, key: &str ) -> Result<DelegatorInfo, Error>
pub fn fund(&self, id: &str) -> Result<Fund, Error>
pub fn proposals_by_voteplan_id_and_index( &self, request: &[ProposalVoteplanIdAndIndexes] ) -> Result<Vec<FullProposalInfo>, Error>
pub fn challenges(&self) -> Result<Vec<Challenge>, Error>
pub fn genesis(&self) -> Result<Vec<u8>, Error>
pub fn service_version(&self) -> Result<ServiceVersion, Error>
pub fn advisor_reviews( &self, proposal_id: &str ) -> Result<HashMap<String, Vec<AdvisorReview>>, Error>
pub fn search(&self, search: SearchQuery) -> Result<SearchResponse, Error>
pub fn search_count(&self, search: SearchQuery) -> Result<i64, Error>
fn verify_status_code(&self, response: &Response) -> Result<(), Error>
pub fn disable_log(&mut self)
pub fn enable_log(&mut self)
pub fn set_api_token(&mut self, token: String)
pub fn set_timeout(&mut self, timeout: Duration)
pub fn set_origin<S: Into<String>>(&mut self, origin: S)
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 From<&ServiceSettings> for RestClient
impl From<&ServiceSettings> 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