Struct valgrind::WalletNodeRestClient
source · pub struct WalletNodeRestClient {
rest_client: JormungandrRest,
}
Fields§
§rest_client: JormungandrRest
Implementations§
source§impl WalletNodeRestClient
impl WalletNodeRestClient
pub fn new(address: Url, settings: RestSettings) -> Self
pub fn send_fragment(&self, body: Vec<u8>) -> Result<(), RestError>
pub fn send_fragments( &self, bodies: Vec<Vec<u8>>, use_v1: bool ) -> Result<(), RestError>
pub fn fragment_logs( &self ) -> Result<HashMap<FragmentId, FragmentLog>, RestError>
pub fn fragment_statuses( &self, statuses: Vec<String> ) -> Result<HashMap<FragmentId, FragmentStatus>, RestError>
pub fn disable_logs(&mut self)
pub fn enable_logs(&mut self)
pub fn stats(&self) -> Result<NodeStatsDto, RestError>
pub fn account_state( &self, account_id: AccountId ) -> Result<AccountState, RestError>
pub fn account_state_by_pk( &self, bech32: String ) -> Result<AccountState, RestError>
pub fn settings(&self) -> Result<SettingsDto, RestError>
pub fn account_exists(&self, account_id: AccountId) -> Result<bool, RestError>
pub fn vote_plan_statuses(&self) -> Result<Vec<VotePlanStatus>, RestError>
pub fn account_votes_for_plan( &self, vote_plan_id: VotePlanId, address: Address ) -> Result<Option<Vec<u8>>, RestError>
pub fn account_votes( &self, address: Address ) -> Result<Option<Vec<AccountVotes>>, RestError>
Trait Implementations§
source§impl Clone for WalletNodeRestClient
impl Clone for WalletNodeRestClient
source§fn clone(&self) -> WalletNodeRestClient
fn clone(&self) -> WalletNodeRestClient
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 WalletNodeRestClient
impl Send for WalletNodeRestClient
impl Sync for WalletNodeRestClient
impl Unpin for WalletNodeRestClient
impl !UnwindSafe for WalletNodeRestClient
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> Fake for T
impl<T> Fake for T
§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