pub enum Response {
Verdict(Verdict),
Ack,
PendingList {
items: Vec<PendingItem>,
},
Pending {
status: String,
},
Status {
scorer: String,
},
Challenge {
locked: bool,
nonce: String,
salt: String,
params: KdfParams,
},
Error {
message: String,
},
}Expand description
The daemon’s reply.
Variants§
Verdict(Verdict)
Verdict for a Propose.
Ack
Acknowledgement of a Resolve/Approve/Deny/Observe.
PendingList
The approval queue (reply to ListPending). A struct variant because
serde’s internally-tagged enums cannot wrap a bare sequence.
Fields
§
items: Vec<PendingItem>Pending
The status of a queued command (reply to PendingStatus): pending |
approved | denied | gone (not in the queue).
Status
The daemon’s runtime status (reply to Status). scorer is the active
backend id, e.g. heuristic or llama:Qwen3-4B-Instruct-2507-Q4_K_M.
Challenge
Reply to AuthBegin: a fresh challenge. locked is false when the daemon
has no vault (then no proof is needed); otherwise the caller derives the
proof from nonce + salt + params and the admin password.
Error
Something went wrong handling the request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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