pub struct OAuth {
pub redirect_uri: String,
pub state: String,
pub scopes: HashSet<String>,
pub proxies: Option<String>,
}
Expand description
Structure that holds the required information for requests with OAuth.
Fields§
§redirect_uri: String
§state: String
The state is generated by default, as suggested by the OAuth2 spec: Cross-Site Request Forgery
scopes: HashSet<String>
You could use macro scopes! to build it at compile time easily
proxies: Option<String>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for OAuth
impl Send for OAuth
impl Sync for OAuth
impl Unpin for OAuth
impl UnwindSafe for OAuth
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