Struct fractal_dto::v1::ResponseDTO
[−]
[src]
pub struct ResponseDTO {
pub message: String,
}Response Data Transfer Object
Fields
message: String
The message
Methods
impl ResponseDTO[src]
fn new<S: AsRef<str>>(message: S) -> ResponseDTO
creates a new response dto
fn set_message<S: AsRef<str>>(&mut self, message: S)
Sets the message of the response
Trait Implementations
impl Debug for ResponseDTO[src]
impl Clone for ResponseDTO[src]
fn clone(&self) -> ResponseDTO
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Decodable for ResponseDTO[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ResponseDTO, __D::Error>
Deserialize a value using a Decoder.
impl Encodable for ResponseDTO[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder.