pub struct Detachment {
pub deleted: Option<bool>,
pub id: Option<String>,
}Fields§
§deleted: Option<bool>Deleted is whether the method was actually removed. False with no error means it was already gone, which is a successful detach rather than a failure — a retry must not be an error.
id: Option<String>ID is the method that was detached, echoed so a caller batching several can tell the answers apart.
Implementations§
Source§impl Detachment
impl Detachment
pub fn new() -> Detachment
Trait Implementations§
Source§impl Clone for Detachment
impl Clone for Detachment
Source§fn clone(&self) -> Detachment
fn clone(&self) -> Detachment
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 Detachment
impl Debug for Detachment
Source§impl Default for Detachment
impl Default for Detachment
Source§fn default() -> Detachment
fn default() -> Detachment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Detachment
impl<'de> Deserialize<'de> for Detachment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Detachment
impl PartialEq for Detachment
Source§impl Serialize for Detachment
impl Serialize for Detachment
impl StructuralPartialEq for Detachment
Auto Trait Implementations§
impl Freeze for Detachment
impl RefUnwindSafe for Detachment
impl Send for Detachment
impl Sync for Detachment
impl Unpin for Detachment
impl UnsafeUnpin for Detachment
impl UnwindSafe for Detachment
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