pub struct ApiRequestMsg<Request> {
pub proxy_address: Option<String>,
pub request: Request,
}
Expand description
An api request. If proxy is None, then the sender must be an OS manager and the proxy address is extrapolated from the OS id.
Fields§
§proxy_address: Option<String>
§request: Request
The actual request
Implementations§
Trait Implementations§
Source§impl<Request: Clone> Clone for ApiRequestMsg<Request>
impl<Request: Clone> Clone for ApiRequestMsg<Request>
Source§fn clone(&self) -> ApiRequestMsg<Request>
fn clone(&self) -> ApiRequestMsg<Request>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Request: Debug> Debug for ApiRequestMsg<Request>
impl<Request: Debug> Debug for ApiRequestMsg<Request>
Source§impl<'de, Request> Deserialize<'de> for ApiRequestMsg<Request>where
Request: Deserialize<'de>,
impl<'de, Request> Deserialize<'de> for ApiRequestMsg<Request>where
Request: Deserialize<'de>,
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<RequestMsg, Request, BaseExecMsg> From<ApiRequestMsg<RequestMsg>> for ExecuteMsg<BaseExecMsg, ApiRequestMsg<RequestMsg>, Request>
impl<RequestMsg, Request, BaseExecMsg> From<ApiRequestMsg<RequestMsg>> for ExecuteMsg<BaseExecMsg, ApiRequestMsg<RequestMsg>, Request>
Source§fn from(request_msg: ApiRequestMsg<RequestMsg>) -> Self
fn from(request_msg: ApiRequestMsg<RequestMsg>) -> Self
Converts to this type from the input type.
Source§impl<Request: JsonSchema> JsonSchema for ApiRequestMsg<Request>
impl<Request: JsonSchema> JsonSchema for ApiRequestMsg<Request>
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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<Request: PartialEq> PartialEq for ApiRequestMsg<Request>
impl<Request: PartialEq> PartialEq for ApiRequestMsg<Request>
Source§fn eq(&self, other: &ApiRequestMsg<Request>) -> bool
fn eq(&self, other: &ApiRequestMsg<Request>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<Request> Serialize for ApiRequestMsg<Request>where
Request: Serialize,
impl<Request> Serialize for ApiRequestMsg<Request>where
Request: Serialize,
impl<Request> StructuralPartialEq for ApiRequestMsg<Request>
Auto Trait Implementations§
impl<Request> Freeze for ApiRequestMsg<Request>where
Request: Freeze,
impl<Request> RefUnwindSafe for ApiRequestMsg<Request>where
Request: RefUnwindSafe,
impl<Request> Send for ApiRequestMsg<Request>where
Request: Send,
impl<Request> Sync for ApiRequestMsg<Request>where
Request: Sync,
impl<Request> Unpin for ApiRequestMsg<Request>where
Request: Unpin,
impl<Request> UnwindSafe for ApiRequestMsg<Request>where
Request: UnwindSafe,
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