pub struct ParticipantMessageData {
pub id: u64,
pub public_key: PublicKey,
pub message: Option<String>,
pub message_sig: Option<Signature>,
}Expand description
Public message data (for serialising and storage)
Fields§
§id: u64id of the particpant in the tx
public_key: PublicKeyPublic key
message: Option<String>Message,
message_sig: Option<Signature>Signature
Implementations§
source§impl ParticipantMessageData
impl ParticipantMessageData
sourcepub fn from_participant_data(p: &ParticipantData) -> ParticipantMessageData
pub fn from_participant_data(p: &ParticipantData) -> ParticipantMessageData
extract relevant message data from participant data
Trait Implementations§
source§impl Clone for ParticipantMessageData
impl Clone for ParticipantMessageData
source§fn clone(&self) -> ParticipantMessageData
fn clone(&self) -> ParticipantMessageData
Returns a copy 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 moresource§impl Debug for ParticipantMessageData
impl Debug for ParticipantMessageData
source§impl<'de> Deserialize<'de> for ParticipantMessageData
impl<'de> Deserialize<'de> for ParticipantMessageData
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
source§impl Display for ParticipantMessageData
impl Display for ParticipantMessageData
Auto Trait Implementations§
impl RefUnwindSafe for ParticipantMessageData
impl Send for ParticipantMessageData
impl Sync for ParticipantMessageData
impl Unpin for ParticipantMessageData
impl UnwindSafe for ParticipantMessageData
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more