#[non_exhaustive]pub struct OperatorConfirmRequest {
pub summary: String,
pub route_channel: u16,
pub route_epoch: u32,
pub kind: Option<OperatorConfirmKind>,
pub operation: Option<String>,
/* private fields */
}Expand description
A module’s channel-0 request to confirm one in-flight write with the person.
This standalone body keeps the existing exhaustive module-control enums unchanged. The daemon validates the summary and the asking connection’s permission before showing a prompt; constructing a request grants nothing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.summary: String§route_channel: u16The caller’s route channel as seen on the asking module’s connection.
route_epoch: u32The epoch of that route on the asking module’s connection.
kind: Option<OperatorConfirmKind>What the asking module says it is confirming. Absent (an older module)
means the same as an unrecognised kind: the person is prompted. Only
OperatorConfirmKind::Operation can ever be answered without a
prompt; OperatorConfirmKind::Enrollment always prompts.
operation: Option<String>The management operation being confirmed, as the asking module’s
manifest names it in confirm_operations. Meaningful only with
OperatorConfirmKind::Operation; absent means the person is prompted.
Implementations§
Source§impl OperatorConfirmRequest
impl OperatorConfirmRequest
Sourcepub fn new(
summary: impl Into<String>,
route_channel: u16,
route_epoch: u32,
) -> Self
pub fn new( summary: impl Into<String>, route_channel: u16, route_epoch: u32, ) -> Self
A request with neither kind nor operation, whose bytes match what
modules sent before those fields existed.
Sourcepub fn with_kind(self, kind: Option<OperatorConfirmKind>) -> Self
pub fn with_kind(self, kind: Option<OperatorConfirmKind>) -> Self
Set or clear kind.
Sourcepub fn with_operation(self, operation: Option<String>) -> Self
pub fn with_operation(self, operation: Option<String>) -> Self
Set or clear operation.