pub struct MessageBodyV1 {
pub text: String,
pub references: Vec<MessageReferenceV1>,
}Expand description
A message body in the clear.
Fields§
§text: String§references: Vec<MessageReferenceV1>Implementations§
Source§impl MessageBodyV1
impl MessageBodyV1
pub fn validate(&self, network: NetworkKind) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for MessageBodyV1
impl Clone for MessageBodyV1
Source§impl Debug for MessageBodyV1
impl Debug for MessageBodyV1
Source§impl<'de> Deserialize<'de> for MessageBodyV1
impl<'de> Deserialize<'de> for MessageBodyV1
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
impl Eq for MessageBodyV1
Source§impl PartialEq for MessageBodyV1
impl PartialEq for MessageBodyV1
Source§impl Serialize for MessageBodyV1
impl Serialize for MessageBodyV1
impl StructuralPartialEq for MessageBodyV1
Auto Trait Implementations§
impl Freeze for MessageBodyV1
impl RefUnwindSafe for MessageBodyV1
impl Send for MessageBodyV1
impl Sync for MessageBodyV1
impl Unpin for MessageBodyV1
impl UnsafeUnpin for MessageBodyV1
impl UnwindSafe for MessageBodyV1
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