pub struct TmcClient {
    client: Client,
    access_token: String,
    ratelimit_api_key: String,
}Fields§
§client: Client§access_token: String§ratelimit_api_key: StringImplementations§
Source§impl TmcClient
 
impl TmcClient
pub fn new_from_env() -> Result<Self>
async fn request_with_headers( &self, method: Method, url: &str, use_auth: bool, body: Option<Value>, ) -> Result<Response>
pub async fn update_user_information( &self, first_name: String, last_name: String, email: Option<String>, user_upstream_id: String, ) -> Result<()>
pub async fn post_new_user_to_moocfi( &self, user_info: NewUserInfo, app_conf: &ApplicationConfiguration, ) -> Result<()>
pub fn mock_for_test() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TmcClient
impl !RefUnwindSafe for TmcClient
impl Send for TmcClient
impl Sync for TmcClient
impl Unpin for TmcClient
impl !UnwindSafe for TmcClient
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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