docs: add missing #[must_use], # Errors, # Panics across public api

This commit is contained in:
damocles 2026-05-22 19:41:27 +02:00
parent 748536203b
commit 908cadb151
10 changed files with 157 additions and 0 deletions

View file

@ -133,6 +133,7 @@ pub struct ReminderStats {
}
impl HostResponse {
#[must_use]
pub fn success() -> Self {
Self {
ok: true,
@ -142,6 +143,7 @@ impl HostResponse {
}
}
#[must_use]
pub fn error(message: impl Into<String>) -> Self {
Self {
ok: false,
@ -151,6 +153,7 @@ impl HostResponse {
}
}
#[must_use]
pub fn list(agents: Vec<String>) -> Self {
Self {
ok: true,
@ -160,6 +163,7 @@ impl HostResponse {
}
}
#[must_use]
pub fn pending(approvals: Vec<Approval>) -> Self {
Self {
ok: true,