pub enum SendEventResponse {
Ok(EventSuccessResponse),
BadRequest(EventFailureResponse),
MethodNotAllowed,
Conflict(IdempotencyKeyFailureResponse),
Unknown,
}Expand description
Response types for sendEvent
Variants§
Ok(EventSuccessResponse)
200: Successful send.
BadRequest(EventFailureResponse)
400: Bad request (e.g. eventName is missing).
MethodNotAllowed
405: Wrong HTTP request method.
Conflict(IdempotencyKeyFailureResponse)
409: Idempotency key has been used.
Unknown
default: Unknown response
Trait Implementations§
Source§impl Clone for SendEventResponse
impl Clone for SendEventResponse
Auto Trait Implementations§
impl Freeze for SendEventResponse
impl RefUnwindSafe for SendEventResponse
impl Send for SendEventResponse
impl Sync for SendEventResponse
impl Unpin for SendEventResponse
impl UnsafeUnpin for SendEventResponse
impl UnwindSafe for SendEventResponse
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