pub struct FormattedResult {
pub data: Value,
pub text: Option<String>,
}Expand description
Result from dispatch_json_formatted containing both JSON data and optional text.
Fields§
§data: ValueThe JSON-serialized output data.
text: Option<String>Human-readable text representation. None if no TextFormat implementation exists and fallback wasn’t requested.
Trait Implementations§
Source§impl Clone for FormattedResult
impl Clone for FormattedResult
Source§fn clone(&self) -> FormattedResult
fn clone(&self) -> FormattedResult
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 moreAuto Trait Implementations§
impl Freeze for FormattedResult
impl RefUnwindSafe for FormattedResult
impl Send for FormattedResult
impl Sync for FormattedResult
impl Unpin for FormattedResult
impl UnwindSafe for FormattedResult
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