pub enum MessageOrigin {
WebApp(ContractInstanceId),
}Expand description
Identifies where an inbound application message originated from.
When a web app sends a message to a delegate through the WebSocket API with
an authentication token, the runtime resolves the token to the originating
contract and wraps it in MessageOrigin::WebApp. Delegates receive this as
the origin parameter of DelegateInterface::process.
Variants§
WebApp(ContractInstanceId)
The message was sent by a web application backed by the given contract.
Trait Implementations§
Source§impl Clone for MessageOrigin
impl Clone for MessageOrigin
Source§fn clone(&self) -> MessageOrigin
fn clone(&self) -> MessageOrigin
Returns a duplicate 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 MessageOrigin
impl Debug for MessageOrigin
Source§impl<'de> Deserialize<'de> for MessageOrigin
impl<'de> Deserialize<'de> for MessageOrigin
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 PartialEq for MessageOrigin
impl PartialEq for MessageOrigin
Source§impl Serialize for MessageOrigin
impl Serialize for MessageOrigin
impl Eq for MessageOrigin
impl StructuralPartialEq for MessageOrigin
Auto Trait Implementations§
impl Freeze for MessageOrigin
impl RefUnwindSafe for MessageOrigin
impl Send for MessageOrigin
impl Sync for MessageOrigin
impl Unpin for MessageOrigin
impl UnsafeUnpin for MessageOrigin
impl UnwindSafe for MessageOrigin
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