pub struct RestV0 {
v0_command: V0Command,
}
Fields§
§v0_command: V0Command
Implementations§
source§impl RestV0
impl RestV0
pub fn new(v0_command: V0Command) -> Self
pub fn utxo(self) -> UtxO
pub fn node(self) -> Node
pub fn message(self) -> Message
pub fn block(self) -> Block
pub fn vote(self) -> Vote
pub fn settings<S: Into<String>>(self, host: S) -> SettingsDto
pub fn stake_pools<S: Into<String>>(self, host: S) -> Vec<String>
pub fn stake_pool<S: Into<String>, P: Into<String>>( self, stake_pool_id: S, host: P ) -> StakePoolStats
pub fn leadership_log<S: Into<String>>(self, host: S) -> Vec<LeadershipLog>
pub fn tip<S: Into<String>>(self, host: S) -> String
pub fn tip_expect_fail<S: Into<String>>(self, host: S, expected_msg: &str)
pub fn account_stats<S: Into<String>, P: Into<String>>( self, address: S, host: P ) -> AccountState
pub fn shutdown<S: Into<String>>(self, host: S)
Auto Trait Implementations§
impl !RefUnwindSafe for RestV0
impl Send for RestV0
impl Sync for RestV0
impl Unpin for RestV0
impl !UnwindSafe for RestV0
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