pub struct Notice {
pub title: String,
pub why: Option<String>,
pub call: Option<String>,
pub detail: Option<String>,
pub unasked: Option<String>,
}Expand description
The words of the block message for one decision (ADR-059): filled by the
program that answers the host from the deciding rule’s title and why
and the call, already made safe to show (secrets masked, one line each).
Fields§
§title: StringThe deciding rule’s title: “reading your SSH private key”.
why: Option<String>The deciding rule’s why, when it has one.
call: Option<String>The call as the person would describe it: a command, or a tool and
what it names (Read ~/.ssh/id_ed25519).
detail: Option<String>The decision’s reasons as they may be shown, in place of
Decision::reasons in the message.
unasked: Option<String>Set where a review reaches a host that cannot put it to the person,
as a deny: why it cannot (“Codex hooks cannot prompt”).
Trait Implementations§
impl Eq for Notice
impl StructuralPartialEq for Notice
Auto Trait Implementations§
impl Forget for Notice
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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