#[non_exhaustive]pub struct CliResponse {
pub request_id: String,
pub outcome: CliOutcome,
}Expand description
A response sent from the mediator to the CLI.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request_id: StringThe request ID from the corresponding CliRequest.
outcome: CliOutcomeThe outcome of the command.
Implementations§
Source§impl CliResponse
impl CliResponse
Sourcepub const fn new(request_id: String, outcome: CliOutcome) -> Self
pub const fn new(request_id: String, outcome: CliOutcome) -> Self
Create a new CliResponse.
Trait Implementations§
Source§impl Clone for CliResponse
impl Clone for CliResponse
Source§fn clone(&self) -> CliResponse
fn clone(&self) -> CliResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CliResponse
impl Debug for CliResponse
Source§impl<'de> Deserialize<'de> for CliResponse
impl<'de> Deserialize<'de> for CliResponse
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 PartialEq for CliResponse
impl PartialEq for CliResponse
Source§impl Serialize for CliResponse
impl Serialize for CliResponse
impl Eq for CliResponse
impl StructuralPartialEq for CliResponse
Auto Trait Implementations§
impl Freeze for CliResponse
impl RefUnwindSafe for CliResponse
impl Send for CliResponse
impl Sync for CliResponse
impl Unpin for CliResponse
impl UnsafeUnpin for CliResponse
impl UnwindSafe for CliResponse
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