pub struct CapabilityResponse {
pub id: String,
pub success: bool,
pub payload: Value,
}Expand description
Response from a provider app after handling a capability request.
Fields§
§id: StringCorrelation ID matching the request
success: boolWhether the invocation succeeded
payload: ValueResponse data (on success) or error details (on failure)
Trait Implementations§
Source§impl Clone for CapabilityResponse
impl Clone for CapabilityResponse
Source§fn clone(&self) -> CapabilityResponse
fn clone(&self) -> CapabilityResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapabilityResponse
impl Debug for CapabilityResponse
Source§impl<'de> Deserialize<'de> for CapabilityResponse
impl<'de> Deserialize<'de> for CapabilityResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CapabilityResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CapabilityResponse
impl Serialize for CapabilityResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CapabilityResponse
impl RefUnwindSafe for CapabilityResponse
impl Send for CapabilityResponse
impl Sync for CapabilityResponse
impl Unpin for CapabilityResponse
impl UnsafeUnpin for CapabilityResponse
impl UnwindSafe for CapabilityResponse
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