pub enum Attribution {
Source(MessageType),
Derived(Box<Message>, Signature),
}
Expand description
Attribution
describes the relationship of the message path in relation
to the author.
Variants§
Source(MessageType)
Source
attributed messages are the original messages to be sent on a
path. For example, a source attribution for an origin message type will
be authored by the original sender. In a reply message type, a source
attribution means the reply was authored by the original message’s
intended target.
Derived(Box<Message>, Signature)
Derived
attributed messages are messages that have been modified by
someone in the message path. They follow the same trajectory (audience
or return path), but their message has been altered. The supplied
signature is the messenger that modified the specified message.
Trait Implementations§
Source§impl Clone for Attribution
impl Clone for Attribution
Source§fn clone(&self) -> Attribution
fn clone(&self) -> Attribution
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 moreAuto Trait Implementations§
impl Freeze for Attribution
impl !RefUnwindSafe for Attribution
impl !Send for Attribution
impl !Sync for Attribution
impl Unpin for Attribution
impl !UnwindSafe for Attribution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)