struct StartProviderAuthReq {
provider_id: String,
into_bundle_id: Option<String>,
cli_path: String,
auth_login_args: Vec<String>,
auth_check_args: Vec<String>,
auth_env: HashMap<String, String>,
requires_tty: bool,
}Fields§
§provider_id: String§into_bundle_id: Option<String>Optional — when set, a successful auth adds an account to the existing bundle. When None, a fresh bundle is created.
cli_path: StringResolved CLI path. The frontend calls resolvecli first to
install / locate the provider’s CLI; the resulting path is
passed here. Keeps the provider table single-sourced in the
frontend.
auth_login_args: Vec<String>e.g. ["auth", "login"] from the provider definition’s
authLoginCommand field.
auth_check_args: Vec<String>e.g. ["auth", "status", "--json"] — used to confirm
authentication after the CLI emits its success line.
auth_env: HashMap<String, String>Env vars to inject at spawn time. Per-provider auth isolation env vars come here (CLAUDE_CONFIG_DIR, CODEX_HOME, GEMINI_CLI_HOME, etc.).
requires_tty: boolSpawn the auth login subprocess under a PTY (instead of plain
piped stdio). Required by providers whose auth subcommand
checks isatty() and refuses to run otherwise (currently
OpenClaw’s models auth login --provider <id>). The flag is
forwarded down to the CEF host’s run_cli_login which picks
the PTY branch when set.
Trait Implementations§
Source§impl Debug for StartProviderAuthReq
impl Debug for StartProviderAuthReq
Source§impl<'de> Deserialize<'de> for StartProviderAuthReq
impl<'de> Deserialize<'de> for StartProviderAuthReq
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 StartProviderAuthReq
impl RefUnwindSafe for StartProviderAuthReq
impl Send for StartProviderAuthReq
impl Sync for StartProviderAuthReq
impl Unpin for StartProviderAuthReq
impl UnwindSafe for StartProviderAuthReq
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> 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.