pub struct Client {
pub database: DatabaseApi,
pub broadcast: BroadcastApi,
pub blockchain: Blockchain,
pub hivemind: HivemindApi,
pub rc: RcApi,
pub keys: AccountByKeyApi,
pub transaction: TransactionStatusApi,
/* private fields */
}Fields§
§database: DatabaseApi§broadcast: BroadcastApi§blockchain: Blockchain§hivemind: HivemindApi§rc: RcApi§keys: AccountByKeyApi§transaction: TransactionStatusApiImplementations§
Source§impl Client
impl Client
pub fn new(nodes: Vec<&str>, options: ClientOptions) -> Self
pub fn new_default() -> Self
pub fn options(&self) -> &ClientOptions
pub async fn call<T: DeserializeOwned>( &self, api: &str, method: &str, params: Value, ) -> Result<T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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