pub struct ObserveRequest {
pub path: String,
pub depth: u32,
}Expand description
Request for the object currently published at one path and its indexable descendants.
Fields§
§path: StringCanonical absolute path of the observation root.
depth: u32Maximum observed depth, where the requested object has depth zero.
Implementations§
Source§impl ObserveRequest
impl ObserveRequest
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validates the request path.
Sourcepub fn validate_response(
&self,
response: &ObserveResponse,
) -> Result<(), ValidationError>
pub fn validate_response( &self, response: &ObserveResponse, ) -> Result<(), ValidationError>
Validates observation shape, names, and requested depth.
Failure means the Client received an invalid success response; it is not a
Host-returned crate::ProtocolErrorCode.
Trait Implementations§
Source§impl Clone for ObserveRequest
impl Clone for ObserveRequest
Source§impl Debug for ObserveRequest
impl Debug for ObserveRequest
impl Eq for ObserveRequest
Source§impl PartialEq for ObserveRequest
impl PartialEq for ObserveRequest
impl StructuralPartialEq for ObserveRequest
Auto Trait Implementations§
impl Freeze for ObserveRequest
impl RefUnwindSafe for ObserveRequest
impl Send for ObserveRequest
impl Sync for ObserveRequest
impl Unpin for ObserveRequest
impl UnsafeUnpin for ObserveRequest
impl UnwindSafe for ObserveRequest
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