pub struct OAuthConfig {
pub public_url: String,
pub admin_token: Option<String>,
}Fields§
§public_url: String§admin_token: Option<String>Owner-approval token for authorization-code issuance.
CLI public URL mode requires this to be Some; None is reserved for
programmatic or local-only runtimes that intentionally skip owner
approval.
Implementations§
Source§impl OAuthConfig
impl OAuthConfig
pub fn normalize_public_url(public_url: String) -> String
pub fn resource_url(&self) -> String
Trait Implementations§
Source§impl Clone for OAuthConfig
impl Clone for OAuthConfig
Source§fn clone(&self) -> OAuthConfig
fn clone(&self) -> OAuthConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OAuthConfig
impl RefUnwindSafe for OAuthConfig
impl Send for OAuthConfig
impl Sync for OAuthConfig
impl Unpin for OAuthConfig
impl UnsafeUnpin for OAuthConfig
impl UnwindSafe for OAuthConfig
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