fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "{{ from: {}, to: {}, data: {}, value: {} }}",
            // &self.price,
            str::from_utf8(&self.from).map_err(|_| fmt::Error)?,
            str::from_utf8(&self.to).map_err(|_| fmt::Error)?,
            str::from_utf8(&self.data).map_err(|_| fmt::Error)?,
            str::from_utf8(&self.value).map_err(|_| fmt::Error)?,
            // &self.time,
        )
    }
// `fmt` converts the vector of bytes inside the struct back to string for
//   more friendly display.
`fmt` converts the vector of bytes inside the struct back to string for
more friendly display.
` fmt ` converts the vector of bytes inside the struct back to string for more friendly display .
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "{{ from: {}, to: {}, data: {}, value: {} }}",
            // &self.price,
            str::from_utf8(&self.from).map_err(|_| fmt::Error)?,
            str::from_utf8(&self.to).map_err(|_| fmt::Error)?,
            str::from_utf8(&self.data).map_err(|_| fmt::Error)?,
            str::from_utf8(&self.value).map_err(|_| fmt::Error)?,
            // &self.time,
        )
    }
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { write ! ( f " " // &self.price, str from_utf8 ( self from ) map_err ( fmt Error ) str from_utf8 ( self to ) map_err ( fmt Error ) str from_utf8 ( self data ) map_err ( fmt Error ) str from_utf8 ( self value ) map_err ( fmt Error ) // &self.time, ) }
`fmt` converts the vector of bytes inside the struct back to string for
more friendly display.
` fmt ` converts the vector of bytes inside the struct back to string for more friendly display .
&self
f
&mut fmt::Formatter<'_>
&self
f
&mut fmt::Formatter<'_>