pub struct ConfigReply {
pub message: Option<ConfigMessage>,
pub action: Option<ConfigAction>,
pub is_error: bool,
}Expand description
Portable result of a config-group host operation.
The host raises a ConfigMessage and the single action the request
implies; the command resolves the message through the presentation shape and
maps the reply to CommandResult<ConfigAction> without touching App.
Fields§
§message: Option<ConfigMessage>§action: Option<ConfigAction>§is_error: boolImplementations§
Source§impl ConfigReply
impl ConfigReply
pub fn ok() -> Self
pub fn message(msg: impl Into<ConfigMessage>) -> Self
pub fn error(msg: impl Into<ConfigMessage>) -> Self
pub fn action(action: ConfigAction) -> Self
pub fn with_message_and_action( msg: impl Into<ConfigMessage>, action: ConfigAction, ) -> Self
Trait Implementations§
Source§impl Clone for ConfigReply
impl Clone for ConfigReply
Source§impl Debug for ConfigReply
impl Debug for ConfigReply
impl Eq for ConfigReply
Source§impl PartialEq for ConfigReply
impl PartialEq for ConfigReply
impl StructuralPartialEq for ConfigReply
Auto Trait Implementations§
impl Freeze for ConfigReply
impl RefUnwindSafe for ConfigReply
impl Send for ConfigReply
impl Sync for ConfigReply
impl Unpin for ConfigReply
impl UnsafeUnpin for ConfigReply
impl UnwindSafe for ConfigReply
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.