pub struct NearClient {
pub network: NetworkConfig,
/* private fields */
}Fields§
§network: NetworkConfigImplementations§
Source§impl NearClient
impl NearClient
pub fn new(network: &NetworkConfig) -> Self
pub async fn view_call<T: DeserializeOwned>( &self, method: &str, args: Value, ) -> Result<T>
pub async fn get_project(&self, project_id: &str) -> Result<Option<ProjectView>>
pub async fn get_next_payment_key_nonce(&self, account_id: &str) -> Result<u32>
pub async fn list_user_secrets( &self, account_id: &str, ) -> Result<Vec<UserSecretInfo>>
pub async fn list_versions( &self, project_id: &str, from_index: Option<u64>, limit: Option<u64>, ) -> Result<Vec<VersionView>>
pub async fn get_developer_earnings(&self, account_id: &str) -> Result<String>
pub async fn estimate_execution_cost( &self, resource_limits: Option<Value>, ) -> Result<String>
pub async fn get_version( &self, project_id: &str, version_key: &str, ) -> Result<Option<VersionView>>
Auto Trait Implementations§
impl Freeze for NearClient
impl !RefUnwindSafe for NearClient
impl Send for NearClient
impl Sync for NearClient
impl Unpin for NearClient
impl UnsafeUnpin for NearClient
impl !UnwindSafe for NearClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more