pub struct FetchInterfaceResponse {
pub interface: String,
pub descriptor: InterfaceDescriptor,
pub validator: Option<Vec<u8>>,
}Expand description
Successful fetch_interface response.
Fields§
§interface: StringOpaque interface reference corresponding to the request.
descriptor: InterfaceDescriptorCurrent validated descriptor.
validator: Option<Vec<u8>>Optional opaque validator for this descriptor observation.
Implementations§
Source§impl FetchInterfaceResponse
impl FetchInterfaceResponse
Sourcepub fn validate_for(
&self,
request: &FetchInterfaceRequest,
) -> Result<(), ValidationError>
pub fn validate_for( &self, request: &FetchInterfaceRequest, ) -> Result<(), ValidationError>
Validates request correspondence and descriptor semantics.
Failure means the Client received an invalid success response; it is not a
Host-returned crate::ProtocolErrorCode. Descriptor format support is a
separate Client concern: an otherwise valid descriptor with an unsupported
format is a Client-local UnsupportedDescriptorFormat.
Trait Implementations§
Source§impl Clone for FetchInterfaceResponse
impl Clone for FetchInterfaceResponse
Source§impl Debug for FetchInterfaceResponse
impl Debug for FetchInterfaceResponse
impl Eq for FetchInterfaceResponse
Source§impl PartialEq for FetchInterfaceResponse
impl PartialEq for FetchInterfaceResponse
impl StructuralPartialEq for FetchInterfaceResponse
Auto Trait Implementations§
impl Freeze for FetchInterfaceResponse
impl RefUnwindSafe for FetchInterfaceResponse
impl Send for FetchInterfaceResponse
impl Sync for FetchInterfaceResponse
impl Unpin for FetchInterfaceResponse
impl UnsafeUnpin for FetchInterfaceResponse
impl UnwindSafe for FetchInterfaceResponse
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