pub struct PendingMessage {
pub chain: Chain,
pub sender: Address,
pub signature: Signature,
pub message_type: MessageType,
pub item_type: ItemType,
pub item_content: String,
pub item_hash: ItemHash,
pub time: Timestamp,
pub channel: Option<Channel>,
}Expand description
A signed message ready for submission to the Aleph network.
The item_content field is always present in memory (needed for uploading
storage/IPFS content), but the custom Serialize implementation only emits
it when item_type == Inline.
Fields§
§chain: Chain§sender: Address§signature: Signature§message_type: MessageType§item_type: ItemType§item_content: String§item_hash: ItemHash§time: Timestamp§channel: Option<Channel>Trait Implementations§
Source§impl Clone for PendingMessage
impl Clone for PendingMessage
Source§fn clone(&self) -> PendingMessage
fn clone(&self) -> PendingMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PendingMessage
impl Debug for PendingMessage
Source§impl Serialize for PendingMessage
impl Serialize for PendingMessage
Auto Trait Implementations§
impl Freeze for PendingMessage
impl RefUnwindSafe for PendingMessage
impl Send for PendingMessage
impl Sync for PendingMessage
impl Unpin for PendingMessage
impl UnsafeUnpin for PendingMessage
impl UnwindSafe for PendingMessage
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