pub struct Deleted {
pub kind: &'static str,
pub id: String,
pub deleted: bool,
}Expand description
Outcome of a delete command.
The API answers 204 No Content, which serializes to nothing useful, so the
CLI reports the deletion itself and keeps --json machine-readable.
§Examples
use ironflow_cli::output::Deleted;
let deleted = Deleted::new("secret", "db/password");
assert_eq!(deleted.kind, "secret");Fields§
§kind: &'static strWhat was deleted (secret, api-key, user).
id: StringIdentifier of the deleted resource.
deleted: boolAlways true; present so consumers can match on a stable shape.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Deleted
impl RefUnwindSafe for Deleted
impl Send for Deleted
impl Sync for Deleted
impl Unpin for Deleted
impl UnsafeUnpin for Deleted
impl UnwindSafe for Deleted
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