pub enum BackendResult {
Created(String),
Deleted,
List(Vec<String>),
Body {
content_type: String,
body: Vec<u8>,
},
}Expand description
Operations-Resultat: entweder ein neu erzeugter Resource-Identifier, eine Liste oder ein opaker Body.
Variants§
Created(String)
Erfolgreiche CREATE/UPDATE — liefert neuen Resource-Pfad
(z.B. app1/topics/Sensor).
Deleted
Erfolgreiche DELETE / no-content-Operation.
List(Vec<String>)
Liste von Resource-Pfaden (z.B. fuer get_applications).
Body
Opaker Resource-Body als 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
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 Eq for BackendResult
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