pub struct BackwardCompatibleRest {
raw: RawRest,
}
Expand description
Legacy tolerant rest api This layer returns raw strings without deserialization in order to assure compatibility and lack of serde errors
Fields§
§raw: RawRest
Implementations§
source§impl BackwardCompatibleRest
impl BackwardCompatibleRest
pub fn new(uri: String, settings: RestSettings) -> Self
pub fn raw(&self) -> &RawRest
pub fn rest_settings(&self) -> &RestSettings
fn print_response_text(&self, text: &str)
fn print_debug_response(&self, response: &Response)
pub fn disable_logger(&mut self)
pub fn enable_logger(&mut self)
pub(crate) fn updates(&self) -> Result<String, Error>
pub fn epoch_reward_history(&self, epoch: u32) -> Result<String, Error>
pub fn reward_history(&self, length: u32) -> Result<String, Error>
pub fn remaining_rewards(&self) -> Result<String, Error>
pub fn stake_distribution(&self) -> Result<String, Error>
pub fn account_votes_all(&self) -> Result<String, Error>
pub fn account_state(&self, id: &Identifier) -> Result<String, Error>
pub fn account_votes(&self, wallet_address: Address) -> Result<String, Error>
pub fn account_votes_with_plan_id( &self, vote_plan_id: VotePlanId, wallet_address: Address ) -> Result<String, Error>
pub fn account_state_by_pk(&self, bech32_str: &str) -> Result<String, Error>
pub fn stake_pools(&self) -> Result<String, Error>
pub fn stake_distribution_at(&self, epoch: u32) -> Result<String, Error>
pub fn stats(&self) -> Result<String, Error>
pub fn network_stats(&self) -> Result<String, Error>
pub fn p2p_quarantined(&self) -> Result<String, Error>
pub fn p2p_non_public(&self) -> Result<String, Error>
pub fn p2p_available(&self) -> Result<String, Error>
pub fn p2p_view(&self) -> Result<String, Error>
pub fn leaders_log(&self) -> Result<String, Error>
pub fn tip(&self) -> Result<Hash, RestError>
pub fn block_as_bytes( &self, header_hash: &HeaderId ) -> Result<Vec<u8>, RestError>
pub fn shutdown(&self) -> Result<String, Error>
pub fn settings(&self) -> Result<String, Error>
pub fn fragments_statuses( &self, ids: Vec<String> ) -> Result<HashMap<String, FragmentStatus>, RestError>
pub fn fragments_logs( &self ) -> Result<HashMap<FragmentId, FragmentLog>, RestError>
pub fn fragment_logs( &self ) -> Result<HashMap<FragmentId, FragmentLog>, RestError>
pub fn send_fragment(&self, fragment: Fragment) -> Result<MemPoolCheck, Error>
pub fn send_raw_fragment(&self, body: Vec<u8>) -> Result<Response, Error>
pub fn send_raw_fragments(&self, bodies: Vec<Vec<u8>>) -> Result<(), Error>
pub fn send_fragment_batch( &self, fragments: Vec<Fragment>, fail_fast: bool ) -> Result<FragmentsProcessingSummary, RestError>
pub fn vote_plan_statuses(&self) -> Result<String, Error>
pub fn set_origin<S: Into<String>>(&mut self, origin: S)
Trait Implementations§
source§impl Clone for BackwardCompatibleRest
impl Clone for BackwardCompatibleRest
source§fn clone(&self) -> BackwardCompatibleRest
fn clone(&self) -> BackwardCompatibleRest
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BackwardCompatibleRest
impl Send for BackwardCompatibleRest
impl Sync for BackwardCompatibleRest
impl Unpin for BackwardCompatibleRest
impl !UnwindSafe for BackwardCompatibleRest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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