struct VerifyKeyReq {
provider: String,
name: String,
display_name: String,
kind: String,
api_key: String,
validate: bool,
account_id: String,
context: Value,
}Expand description
Request for account.key.verify (account key flow). The api_key
field is a secret — never log this struct.
Fields§
§provider: StringService id: “github” | “openai” | “anthropic” | “slack” | … .
name: StringAccount display name (user-chosen label).
display_name: String§kind: StringAccount kind; defaults to “api_key” when empty.
api_key: StringThe pasted secret. Used once to (optionally) validate + store in the OS keychain, then dropped. Never persisted in the DB, never logged.
validate: boolWhen true, run a live validation probe before storing (user clicked “Validate”). When false, store with status “unknown” (the “Save without validating” air-gapped path).
account_id: StringSet to replace the key on an existing account; empty mints a new one.
context: ValueUser-entered, non-secret context (github_username, scopes, notes, …). Merged over any existing context so editing a key never wipes fields the user set previously.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VerifyKeyReq
impl<'de> Deserialize<'de> for VerifyKeyReq
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 VerifyKeyReq
impl RefUnwindSafe for VerifyKeyReq
impl Send for VerifyKeyReq
impl Sync for VerifyKeyReq
impl Unpin for VerifyKeyReq
impl UnsafeUnpin for VerifyKeyReq
impl UnwindSafe for VerifyKeyReq
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