pub trait NadeoApiClient {
Show 27 methods
// Required methods
async fn get_client(&self) -> &Client;
async fn rate_limit(&self) -> SemaphorePermit<'_>;
fn get_auth_token(
&self,
audience: NadeoAudience,
) -> Result<String, TryLockError>;
async fn aget_auth_token(&self, audience: NadeoAudience) -> String;
// Provided methods
async fn get_file_size(&self, url: &str) -> Result<u64, RqError> { ... }
fn get_auth_header(
&self,
audience: NadeoAudience,
) -> Result<String, TryLockError> { ... }
async fn aget_auth_header(&self, audience: NadeoAudience) -> String { ... }
async fn get_auth_header_value(
&self,
audience: NadeoAudience,
) -> HeaderValue { ... }
async fn oauth_get<'a>(
&self,
path: &str,
token: &OAuthToken,
_permit: &SemaphorePermit<'a>,
) -> RequestBuilder { ... }
async fn core_get(
&self,
path: &str,
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_core_get(&self, path: &str) -> Result<Value, RqError> { ... }
async fn core_post_bytes(
&self,
path: &str,
body: &[u8],
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_core_post_bytes(
&self,
path: &str,
body: &[u8],
) -> Result<Value, RqError> { ... }
async fn core_post(
&self,
path: &str,
body: &Value,
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_core_post(
&self,
path: &str,
body: &Value,
) -> Result<Value, RqError> { ... }
async fn live_get(
&self,
path: &str,
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_live_get(&self, path: &str) -> Result<Value, RqError> { ... }
async fn live_post_bytes(
&self,
path: &str,
body: &[u8],
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_live_post_bytes(
&self,
path: &str,
body: &[u8],
) -> Result<Value, RqError> { ... }
async fn live_post(
&self,
path: &str,
body: &Value,
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_live_post(
&self,
path: &str,
body: &Value,
) -> Result<Value, RqError> { ... }
async fn meet_get(
&self,
path: &str,
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_meet_get(&self, path: &str) -> Result<Value, RqError> { ... }
async fn meet_post_bytes(
&self,
path: &str,
body: &[u8],
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_meet_post_bytes(
&self,
path: &str,
body: &[u8],
) -> Result<Value, RqError> { ... }
async fn meet_post(
&self,
path: &str,
body: &Value,
) -> (RequestBuilder, SemaphorePermit<'_>) { ... }
async fn run_meet_post(
&self,
path: &str,
body: &Value,
) -> Result<Value, RqError> { ... }
}
Required Methods§
async fn get_client(&self) -> &Client
async fn rate_limit(&self) -> SemaphorePermit<'_>
fn get_auth_token( &self, audience: NadeoAudience, ) -> Result<String, TryLockError>
async fn aget_auth_token(&self, audience: NadeoAudience) -> String
Provided Methods§
async fn get_file_size(&self, url: &str) -> Result<u64, RqError>
fn get_auth_header( &self, audience: NadeoAudience, ) -> Result<String, TryLockError>
async fn aget_auth_header(&self, audience: NadeoAudience) -> String
async fn get_auth_header_value(&self, audience: NadeoAudience) -> HeaderValue
async fn oauth_get<'a>( &self, path: &str, token: &OAuthToken, _permit: &SemaphorePermit<'a>, ) -> RequestBuilder
async fn core_get(&self, path: &str) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_core_get(&self, path: &str) -> Result<Value, RqError>
async fn core_post_bytes( &self, path: &str, body: &[u8], ) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_core_post_bytes( &self, path: &str, body: &[u8], ) -> Result<Value, RqError>
async fn core_post( &self, path: &str, body: &Value, ) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_core_post( &self, path: &str, body: &Value, ) -> Result<Value, RqError>
async fn live_get(&self, path: &str) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_live_get(&self, path: &str) -> Result<Value, RqError>
async fn live_post_bytes( &self, path: &str, body: &[u8], ) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_live_post_bytes( &self, path: &str, body: &[u8], ) -> Result<Value, RqError>
async fn live_post( &self, path: &str, body: &Value, ) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_live_post( &self, path: &str, body: &Value, ) -> Result<Value, RqError>
async fn meet_get(&self, path: &str) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_meet_get(&self, path: &str) -> Result<Value, RqError>
async fn meet_post_bytes( &self, path: &str, body: &[u8], ) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_meet_post_bytes( &self, path: &str, body: &[u8], ) -> Result<Value, RqError>
async fn meet_post( &self, path: &str, body: &Value, ) -> (RequestBuilder, SemaphorePermit<'_>)
async fn run_meet_post( &self, path: &str, body: &Value, ) -> Result<Value, RqError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.