Struct veilid_core::VeilidAppCall
source · pub struct VeilidAppCall { /* private fields */ }
Expand description
Direct question blob passed to hosting application for processing to send an eventual AppReply
Implementations§
source§impl VeilidAppCall
impl VeilidAppCall
pub fn new( sender: Option<TypedKey>, route_id: Option<RouteId>, message: Vec<u8>, call_id: OperationId ) -> Self
sourcepub fn sender(&self) -> Option<&TypedKey>
pub fn sender(&self) -> Option<&TypedKey>
Some(sender) if the request was sent directly, None if received via a private/safety route
sourcepub fn route_id(&self) -> Option<&RouteId>
pub fn route_id(&self) -> Option<&RouteId>
Some(route_id) if the request was received over a private route, None if received only a safety route or directly
sourcepub fn id(&self) -> OperationId
pub fn id(&self) -> OperationId
The id to specify as call_id
in the VeilidAPI::app_call_reply function
Trait Implementations§
source§impl Clone for VeilidAppCall
impl Clone for VeilidAppCall
source§fn clone(&self) -> VeilidAppCall
fn clone(&self) -> VeilidAppCall
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 VeilidAppCall
impl Debug for VeilidAppCall
source§impl<'de> Deserialize<'de> for VeilidAppCall
impl<'de> Deserialize<'de> for VeilidAppCall
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 VeilidAppCall
impl JsonSchema for VeilidAppCall
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 VeilidAppCall
impl PartialEq for VeilidAppCall
source§fn eq(&self, other: &VeilidAppCall) -> bool
fn eq(&self, other: &VeilidAppCall) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VeilidAppCall
impl Serialize for VeilidAppCall
impl Eq for VeilidAppCall
impl StructuralPartialEq for VeilidAppCall
Auto Trait Implementations§
impl Freeze for VeilidAppCall
impl RefUnwindSafe for VeilidAppCall
impl Send for VeilidAppCall
impl Sync for VeilidAppCall
impl Unpin for VeilidAppCall
impl UnwindSafe for VeilidAppCall
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