pub enum BackendResult {
Created(String),
Deleted,
List(Vec<String>),
Body {
content_type: String,
body: Vec<u8>,
},
}Expand description
Operation result: either a newly created resource identifier, a list, or an opaque body.
Variants§
Created(String)
Successful CREATE/UPDATE — returns the new resource path
(e.g. app1/topics/Sensor).
Deleted
Successful DELETE / no-content operation.
List(Vec<String>)
List of resource paths (e.g. for get_applications).
Body
Opaque resource body as XML/JSON (Spec §8.1).
Trait Implementations§
Source§impl Clone for BackendResult
impl Clone for BackendResult
Source§fn clone(&self) -> BackendResult
fn clone(&self) -> BackendResult
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 BackendResult
impl Debug for BackendResult
impl Eq for BackendResult
Source§impl PartialEq for BackendResult
impl PartialEq for BackendResult
Source§fn eq(&self, other: &BackendResult) -> bool
fn eq(&self, other: &BackendResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendResult
Auto Trait Implementations§
impl Freeze for BackendResult
impl RefUnwindSafe for BackendResult
impl Send for BackendResult
impl Sync for BackendResult
impl Unpin for BackendResult
impl UnsafeUnpin for BackendResult
impl UnwindSafe for BackendResult
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