Struct abstract_os::api::ApiRequestMsg
source · [−]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: T
The actual request
Implementations
Trait Implementations
sourceimpl<T: Clone + Serialize> Clone for ApiRequestMsg<T>
impl<T: Clone + Serialize> Clone for ApiRequestMsg<T>
sourcefn clone(&self) -> ApiRequestMsg<T>
fn clone(&self) -> ApiRequestMsg<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug + Serialize> Debug for ApiRequestMsg<T>
impl<T: Debug + Serialize> Debug for ApiRequestMsg<T>
sourceimpl<'de, T: Serialize> Deserialize<'de> for ApiRequestMsg<T>where
T: Deserialize<'de>,
impl<'de, T: Serialize> Deserialize<'de> for ApiRequestMsg<T>where
T: Deserialize<'de>,
sourcefn 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
sourceimpl<T: Serialize> From<ApiRequestMsg<T>> for ExecuteMsg<T>
impl<T: Serialize> From<ApiRequestMsg<T>> for ExecuteMsg<T>
sourcefn from(request_msg: ApiRequestMsg<T>) -> Self
fn from(request_msg: ApiRequestMsg<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: Serialize + JsonSchema> JsonSchema for ApiRequestMsg<T>
impl<T: Serialize + JsonSchema> JsonSchema for ApiRequestMsg<T>
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 moresourceimpl<T: PartialEq + Serialize> PartialEq<ApiRequestMsg<T>> for ApiRequestMsg<T>
impl<T: PartialEq + Serialize> PartialEq<ApiRequestMsg<T>> for ApiRequestMsg<T>
sourcefn eq(&self, other: &ApiRequestMsg<T>) -> bool
fn eq(&self, other: &ApiRequestMsg<T>) -> bool
sourceimpl<T: Serialize> Serialize for ApiRequestMsg<T>where
T: Serialize,
impl<T: Serialize> Serialize for ApiRequestMsg<T>where
T: Serialize,
impl<T: Serialize> StructuralPartialEq for ApiRequestMsg<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ApiRequestMsg<T>where
T: RefUnwindSafe,
impl<T> Send for ApiRequestMsg<T>where
T: Send,
impl<T> Sync for ApiRequestMsg<T>where
T: Sync,
impl<T> Unpin for ApiRequestMsg<T>where
T: Unpin,
impl<T> UnwindSafe for ApiRequestMsg<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more