struct OAuthStartReq {
provider: String,
name: String,
client_id: Option<String>,
client_secret: Option<String>,
client_mode: Option<String>,
save_client: Option<bool>,
scopes: Vec<String>,
account_id: Option<String>,
replace_github_user: bool,
use_builtin_client: bool,
}Expand description
Request for account.oauth.start. clientId/clientSecret are BYO OAuth
app credentials (optional; required for secret-mandatory providers). Never
log this struct: clientSecret is a secret.
Fields§
§provider: String§name: StringThe new account’s label; ignored when accountId is set.
client_id: Option<String>§client_secret: Option<String>§client_mode: Option<String>"byo" (default) or "workspace": what kind of client clientId is.
save_client: Option<bool>Save clientId/clientSecret in the keychain for later connects to
this provider once the flow succeeds (default true).
scopes: Vec<String>Scopes beyond the provider’s base ones (a service being turned on).
account_id: Option<String>Authorize this existing account again (turn a service on, or reconnect) instead of creating a new one.
replace_github_user: boolGitHub: the person agreed to replace the GitHub user this AgentMux account is connected as with the one who just authorized.
use_builtin_client: boolRun with AgentMux’s own client even though the person has saved one of their own (the GitHub App choice: its title promises the App).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OAuthStartReq
impl<'de> Deserialize<'de> for OAuthStartReq
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for OAuthStartReq
impl RefUnwindSafe for OAuthStartReq
impl Send for OAuthStartReq
impl Sync for OAuthStartReq
impl Unpin for OAuthStartReq
impl UnsafeUnpin for OAuthStartReq
impl UnwindSafe for OAuthStartReq
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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