pub enum ClientPayload {
Show 20 variants
Empty,
AuthChallenge {
method: String,
},
AuthResponse {
code: String,
},
UnlockVault {
password: String,
},
Reload,
Chat {
messages: Vec<ChatMessage>,
},
SecretsList,
SecretsGet {
key: String,
},
SecretsStore {
key: String,
value: String,
},
SecretsDelete {
key: String,
},
SecretsPeek {
name: String,
},
SecretsSetPolicy {
name: String,
policy: String,
skills: Vec<String>,
},
SecretsSetDisabled {
name: String,
disabled: bool,
},
SecretsDeleteCredential {
name: String,
},
SecretsHasTotp,
SecretsSetupTotp,
SecretsVerifyTotp {
code: String,
},
SecretsRemoveTotp,
ToolApprovalResponse {
id: String,
approved: bool,
},
UserPromptResponse {
id: String,
dismissed: bool,
value: PromptResponseValue,
},
}Expand description
Payload variants for client frames.
Variants§
Empty
AuthChallenge
AuthResponse
UnlockVault
Reload
Chat
Fields
§
messages: Vec<ChatMessage>SecretsList
SecretsGet
SecretsStore
SecretsDelete
SecretsPeek
SecretsSetPolicy
SecretsSetDisabled
SecretsDeleteCredential
SecretsHasTotp
SecretsSetupTotp
SecretsVerifyTotp
SecretsRemoveTotp
ToolApprovalResponse
UserPromptResponse
Trait Implementations§
Source§impl Clone for ClientPayload
impl Clone for ClientPayload
Source§fn clone(&self) -> ClientPayload
fn clone(&self) -> ClientPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientPayload
impl Debug for ClientPayload
Source§impl<'de> Deserialize<'de> for ClientPayload
impl<'de> Deserialize<'de> for ClientPayload
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientPayload
impl RefUnwindSafe for ClientPayload
impl Send for ClientPayload
impl Sync for ClientPayload
impl Unpin for ClientPayload
impl UnsafeUnpin for ClientPayload
impl UnwindSafe for ClientPayload
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