pub enum DeleteContactResponse {
Ok(ContactDeleteResponse),
BadRequest(ContactFailureResponse),
NotFound(ContactFailureResponse),
MethodNotAllowed,
Unknown,
}Expand description
Response types for deleteContact
Variants§
Ok(ContactDeleteResponse)
200: Successful delete.
BadRequest(ContactFailureResponse)
400: Bad request (e.g. email and userId are both provided).
NotFound(ContactFailureResponse)
404: Contact not found.
MethodNotAllowed
405: Wrong HTTP request method.
Unknown
default: Unknown response
Trait Implementations§
Source§impl Clone for DeleteContactResponse
impl Clone for DeleteContactResponse
Auto Trait Implementations§
impl Freeze for DeleteContactResponse
impl RefUnwindSafe for DeleteContactResponse
impl Send for DeleteContactResponse
impl Sync for DeleteContactResponse
impl Unpin for DeleteContactResponse
impl UnsafeUnpin for DeleteContactResponse
impl UnwindSafe for DeleteContactResponse
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