pub struct AdapterRequestMsg<Request> {
pub account_address: Option<String>,
pub request: Request,
}
Expand description
An adapter request. If account is None, then the sender must be an Account.
Fields§
§account_address: Option<String>
§request: Request
The actual request
Implementations§
Trait Implementations§
Source§impl<Request: Clone> Clone for AdapterRequestMsg<Request>
impl<Request: Clone> Clone for AdapterRequestMsg<Request>
Source§fn clone(&self) -> AdapterRequestMsg<Request>
fn clone(&self) -> AdapterRequestMsg<Request>
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<Request: Debug> Debug for AdapterRequestMsg<Request>
impl<Request: Debug> Debug for AdapterRequestMsg<Request>
Source§impl<'de, Request> Deserialize<'de> for AdapterRequestMsg<Request>where
Request: Deserialize<'de>,
impl<'de, Request> Deserialize<'de> for AdapterRequestMsg<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, BaseExecMsg> From<AdapterRequestMsg<RequestMsg>> for ExecuteMsg<BaseExecMsg, AdapterRequestMsg<RequestMsg>>
impl<RequestMsg, BaseExecMsg> From<AdapterRequestMsg<RequestMsg>> for ExecuteMsg<BaseExecMsg, AdapterRequestMsg<RequestMsg>>
Source§fn from(request_msg: AdapterRequestMsg<RequestMsg>) -> Self
fn from(request_msg: AdapterRequestMsg<RequestMsg>) -> Self
Converts to this type from the input type.
Source§impl<Request: JsonSchema> JsonSchema for AdapterRequestMsg<Request>
impl<Request: JsonSchema> JsonSchema for AdapterRequestMsg<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(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<Request: PartialEq> PartialEq for AdapterRequestMsg<Request>
impl<Request: PartialEq> PartialEq for AdapterRequestMsg<Request>
Source§impl<Request> Serialize for AdapterRequestMsg<Request>where
Request: Serialize,
impl<Request> Serialize for AdapterRequestMsg<Request>where
Request: Serialize,
impl<Request> StructuralPartialEq for AdapterRequestMsg<Request>
Auto Trait Implementations§
impl<Request> Freeze for AdapterRequestMsg<Request>where
Request: Freeze,
impl<Request> RefUnwindSafe for AdapterRequestMsg<Request>where
Request: RefUnwindSafe,
impl<Request> Send for AdapterRequestMsg<Request>where
Request: Send,
impl<Request> Sync for AdapterRequestMsg<Request>where
Request: Sync,
impl<Request> Unpin for AdapterRequestMsg<Request>where
Request: Unpin,
impl<Request> UnwindSafe for AdapterRequestMsg<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more