pub struct AdaptMessageResponse {
pub last: Option<bool>,
pub payload: Option<Vec<u8>>,
pub state_updates: Option<HashMap<String, String>>,
}Expand description
Message sent by the adapter to the client.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§last: Option<bool>Optional. Indicates whether this is the last AdaptMessageResponse in the stream. This field may be optionally set by the server. Clients should not rely on this field being set in all cases.
payload: Option<Vec<u8>>Optional. Uninterpreted bytes from the underlying wire protocol.
state_updates: Option<HashMap<String, String>>Optional. Opaque state updates to be applied by the client.
Trait Implementations§
Source§impl Clone for AdaptMessageResponse
impl Clone for AdaptMessageResponse
Source§fn clone(&self) -> AdaptMessageResponse
fn clone(&self) -> AdaptMessageResponse
Returns a duplicate 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 AdaptMessageResponse
impl Debug for AdaptMessageResponse
Source§impl Default for AdaptMessageResponse
impl Default for AdaptMessageResponse
Source§fn default() -> AdaptMessageResponse
fn default() -> AdaptMessageResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdaptMessageResponse
impl<'de> Deserialize<'de> for AdaptMessageResponse
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 Serialize for AdaptMessageResponse
impl Serialize for AdaptMessageResponse
impl ResponseResult for AdaptMessageResponse
Auto Trait Implementations§
impl Freeze for AdaptMessageResponse
impl RefUnwindSafe for AdaptMessageResponse
impl Send for AdaptMessageResponse
impl Sync for AdaptMessageResponse
impl Unpin for AdaptMessageResponse
impl UnwindSafe for AdaptMessageResponse
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