pub struct RegisteredOAuthProvider {
pub plugin: String,
pub manifest_json: String,
pub request_fn: OAuthRequestFn,
pub plugin_free_string: FreeStringFn,
pub user_data: *mut c_void,
}Expand description
A provider-owned OAuth implementation. manifest_json is validated JSON
copied from the plugin; the callback receives action envelopes such as
{\"action\":\"begin\"} and returns plugin-owned JSON.
Fields§
§plugin: StringThe owning extension display name, used to scope credentials and diagnostics. This is host-owned metadata and is not supplied by the plugin.
manifest_json: String§request_fn: OAuthRequestFn§plugin_free_string: FreeStringFn§user_data: *mut c_voidTrait Implementations§
Source§impl Clone for RegisteredOAuthProvider
impl Clone for RegisteredOAuthProvider
impl Send for RegisteredOAuthProvider
impl Sync for RegisteredOAuthProvider
Auto Trait Implementations§
impl Freeze for RegisteredOAuthProvider
impl RefUnwindSafe for RegisteredOAuthProvider
impl Unpin for RegisteredOAuthProvider
impl UnsafeUnpin for RegisteredOAuthProvider
impl UnwindSafe for RegisteredOAuthProvider
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