[−][src]Struct fxa_client::http_client::Client
Fields
state: Mutex<HashMap<String, HttpClientState>>
Implementations
impl Client
[src]
pub fn new() -> Self
[src]
fn destroy_token_helper(&self, config: &Config, body: &Value) -> Result<()>
[src]
fn make_oauth_token_request(
&self,
config: &Config,
body: Value
) -> Result<OAuthTokenResponse>
[src]
&self,
config: &Config,
body: Value
) -> Result<OAuthTokenResponse>
fn handle_too_many_requests(&self, resp: Response) -> Result<Response>
[src]
fn default_handle_response_error(resp: Response) -> Result<Response>
[src]
fn make_request(&self, request: Request) -> Result<Response>
[src]
Trait Implementations
impl FxAClient for Client
[src]
fn fxa_client_configuration(
&self,
config: &Config
) -> Result<ClientConfigurationResponse>
[src]
&self,
config: &Config
) -> Result<ClientConfigurationResponse>
fn openid_configuration(
&self,
config: &Config
) -> Result<OpenIdConfigurationResponse>
[src]
&self,
config: &Config
) -> Result<OpenIdConfigurationResponse>
fn profile(
&self,
config: &Config,
access_token: &str,
etag: Option<String>
) -> Result<Option<ResponseAndETag<ProfileResponse>>>
[src]
&self,
config: &Config,
access_token: &str,
etag: Option<String>
) -> Result<Option<ResponseAndETag<ProfileResponse>>>
fn set_ecosystem_anon_id(
&self,
config: &Config,
access_token: &str,
ecosystem_anon_id: &str
) -> Result<()>
[src]
&self,
config: &Config,
access_token: &str,
ecosystem_anon_id: &str
) -> Result<()>
fn refresh_token_with_code(
&self,
config: &Config,
code: &str,
code_verifier: &str
) -> Result<OAuthTokenResponse>
[src]
&self,
config: &Config,
code: &str,
code_verifier: &str
) -> Result<OAuthTokenResponse>
fn refresh_token_with_session_token(
&self,
config: &Config,
session_token: &str,
scopes: &[&str]
) -> Result<OAuthTokenResponse>
[src]
&self,
config: &Config,
session_token: &str,
scopes: &[&str]
) -> Result<OAuthTokenResponse>
fn access_token_with_refresh_token(
&self,
config: &Config,
refresh_token: &str,
ttl: Option<u64>,
scopes: &[&str]
) -> Result<OAuthTokenResponse>
[src]
&self,
config: &Config,
refresh_token: &str,
ttl: Option<u64>,
scopes: &[&str]
) -> Result<OAuthTokenResponse>
fn access_token_with_session_token(
&self,
config: &Config,
session_token: &str,
scopes: &[&str]
) -> Result<OAuthTokenResponse>
[src]
&self,
config: &Config,
session_token: &str,
scopes: &[&str]
) -> Result<OAuthTokenResponse>
fn authorization_code_using_session_token(
&self,
config: &Config,
session_token: &str,
auth_params: AuthorizationRequestParameters
) -> Result<OAuthAuthResponse>
[src]
&self,
config: &Config,
session_token: &str,
auth_params: AuthorizationRequestParameters
) -> Result<OAuthAuthResponse>
fn oauth_introspect_refresh_token(
&self,
config: &Config,
refresh_token: &str
) -> Result<IntrospectResponse>
[src]
&self,
config: &Config,
refresh_token: &str
) -> Result<IntrospectResponse>
fn duplicate_session(
&self,
config: &Config,
session_token: &str
) -> Result<DuplicateTokenResponse>
[src]
&self,
config: &Config,
session_token: &str
) -> Result<DuplicateTokenResponse>
fn destroy_access_token(
&self,
config: &Config,
access_token: &str
) -> Result<()>
[src]
&self,
config: &Config,
access_token: &str
) -> Result<()>
fn destroy_refresh_token(
&self,
config: &Config,
refresh_token: &str
) -> Result<()>
[src]
&self,
config: &Config,
refresh_token: &str
) -> Result<()>
fn pending_commands(
&self,
config: &Config,
refresh_token: &str,
index: u64,
limit: Option<u64>
) -> Result<PendingCommandsResponse>
[src]
&self,
config: &Config,
refresh_token: &str,
index: u64,
limit: Option<u64>
) -> Result<PendingCommandsResponse>
fn invoke_command(
&self,
config: &Config,
refresh_token: &str,
command: &str,
target: &str,
payload: &Value
) -> Result<()>
[src]
&self,
config: &Config,
refresh_token: &str,
command: &str,
target: &str,
payload: &Value
) -> Result<()>
fn devices(
&self,
config: &Config,
refresh_token: &str
) -> Result<Vec<GetDeviceResponse>>
[src]
&self,
config: &Config,
refresh_token: &str
) -> Result<Vec<GetDeviceResponse>>
fn update_device(
&self,
config: &Config,
refresh_token: &str,
update: DeviceUpdateRequest<'_>
) -> Result<DeviceResponseCommon>
[src]
&self,
config: &Config,
refresh_token: &str,
update: DeviceUpdateRequest<'_>
) -> Result<DeviceResponseCommon>
fn destroy_device(
&self,
config: &Config,
refresh_token: &str,
id: &str
) -> Result<()>
[src]
&self,
config: &Config,
refresh_token: &str,
id: &str
) -> Result<()>
fn attached_clients(
&self,
config: &Config,
session_token: &str
) -> Result<Vec<GetAttachedClientResponse>>
[src]
&self,
config: &Config,
session_token: &str
) -> Result<Vec<GetAttachedClientResponse>>
fn scoped_key_data(
&self,
config: &Config,
session_token: &str,
client_id: &str,
scope: &str
) -> Result<HashMap<String, ScopedKeyDataResponse>>
[src]
&self,
config: &Config,
session_token: &str,
client_id: &str,
scope: &str
) -> Result<HashMap<String, ScopedKeyDataResponse>>
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,