pub struct Response {
pub success: bool,
pub message: String,
pub status: Option<Vec<ProcessStatus>>,
}
Expand description
represents a response from the server to the client. this should never be received by a server. additionally, this structure is subject to change in the future as responses get more detailed
Fields§
§success: bool
whether or not the command succeeded
message: String
the message the command returned
status: Option<Vec<ProcessStatus>>
the server may optionally decide to send a list of process statuses to display to the user. this is not always the entire status!
Trait Implementations§
source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
Auto Trait Implementations§
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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