pub struct CallOperationResponse {
pub result: Value,
pub validator: Option<Vec<u8>>,
}Expand description
Successful operation response.
Fields§
§result: ValueApplication result validated against the operation return declaration.
validator: Option<Vec<u8>>Optional validator for the object state observed after execution.
Implementations§
Source§impl CallOperationResponse
impl CallOperationResponse
Sourcepub fn validate_for(
&self,
descriptor: &InterfaceDescriptor,
operation: &str,
) -> Result<(), ValidationError>
pub fn validate_for( &self, descriptor: &InterfaceDescriptor, operation: &str, ) -> Result<(), ValidationError>
Validates this result against the named operation in descriptor.
Failure means the Client received an invalid success response; it is not a
Host-returned crate::ProtocolErrorCode.
Trait Implementations§
Source§impl Clone for CallOperationResponse
impl Clone for CallOperationResponse
Source§impl Debug for CallOperationResponse
impl Debug for CallOperationResponse
Source§impl PartialEq for CallOperationResponse
impl PartialEq for CallOperationResponse
impl StructuralPartialEq for CallOperationResponse
Auto Trait Implementations§
impl Freeze for CallOperationResponse
impl RefUnwindSafe for CallOperationResponse
impl Send for CallOperationResponse
impl Sync for CallOperationResponse
impl Unpin for CallOperationResponse
impl UnsafeUnpin for CallOperationResponse
impl UnwindSafe for CallOperationResponse
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