pub struct SelfConfirmation {
pub confirm: Option<bool>,
}Expand description
The confirmation a call aimed at this node has to carry.
Flattened into the parameters of every tool whose row says
severs_local: true, so that the field, its documentation and its meaning
are written once rather than six times. The registry refuses to build a
table where a tool claims to sever the local node without offering this,
which is what keeps the flag and the schema in step.
Fields§
§confirm: Option<bool>Set to true to confirm an operation on the device this server runs
on, which would cut the connection this call is being made over.
Needed only then: any other device is an ordinary call and ignores it.
Trait Implementations§
Source§impl Debug for SelfConfirmation
impl Debug for SelfConfirmation
Source§impl Default for SelfConfirmation
impl Default for SelfConfirmation
Source§impl<'de> Deserialize<'de> for SelfConfirmation
impl<'de> Deserialize<'de> for SelfConfirmation
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
Source§impl JsonSchema for SelfConfirmation
impl JsonSchema for SelfConfirmation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SelfConfirmation
impl RefUnwindSafe for SelfConfirmation
impl Send for SelfConfirmation
impl Sync for SelfConfirmation
impl Unpin for SelfConfirmation
impl UnsafeUnpin for SelfConfirmation
impl UnwindSafe for SelfConfirmation
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