Struct veilid_core::VeilidAppMessage
source · pub struct VeilidAppMessage { /* private fields */ }
Expand description
Direct statement blob passed to hosting application for processing
Implementations§
source§impl VeilidAppMessage
impl VeilidAppMessage
pub fn new( sender: Option<TypedKey>, route_id: Option<RouteId>, message: Vec<u8> ) -> Self
sourcepub fn sender(&self) -> Option<&TypedKey>
pub fn sender(&self) -> Option<&TypedKey>
Some(sender) if the message was sent directly, None if received via a private/safety route
Trait Implementations§
source§impl Clone for VeilidAppMessage
impl Clone for VeilidAppMessage
source§fn clone(&self) -> VeilidAppMessage
fn clone(&self) -> VeilidAppMessage
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 VeilidAppMessage
impl Debug for VeilidAppMessage
source§impl<'de> Deserialize<'de> for VeilidAppMessage
impl<'de> Deserialize<'de> for VeilidAppMessage
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 JsonSchema for VeilidAppMessage
impl JsonSchema for VeilidAppMessage
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for VeilidAppMessage
impl PartialEq for VeilidAppMessage
source§fn eq(&self, other: &VeilidAppMessage) -> bool
fn eq(&self, other: &VeilidAppMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VeilidAppMessage
impl Serialize for VeilidAppMessage
impl Eq for VeilidAppMessage
impl StructuralPartialEq for VeilidAppMessage
Auto Trait Implementations§
impl Freeze for VeilidAppMessage
impl RefUnwindSafe for VeilidAppMessage
impl Send for VeilidAppMessage
impl Sync for VeilidAppMessage
impl Unpin for VeilidAppMessage
impl UnwindSafe for VeilidAppMessage
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