#[non_exhaustive]pub struct NotifyResponse {
pub status: String,
pub request_id: String,
pub processed_at: String,
}Expand description
Server response to a successful POST /api/v1/notification.
Mirrors aviso-server’s NotificationResponse body. The request_id matches the
X-Request-ID header value the server set on the response; clients should log it so support
requests can be correlated against server traces.
Marked #[non_exhaustive] because the server may grow the response shape (for example a
sequence echo for in-stream visibility); downstream pattern matching stays compatible.
Serialize is derived so non-Rust consumers (the C ABI in aviso-ffi) can render the
response as JSON without bespoke marshalling. The serialised shape is the public field
layout: status, request_id, processed_at.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: StringServer-supplied status string (typically "success").
request_id: StringX-Request-ID-equivalent value, echoed in the body for correlation.
processed_at: StringServer-supplied timestamp string. The format is RFC 3339 in current aviso-server
versions; the client keeps it as a string to avoid pulling in a date-time dependency.
Trait Implementations§
Source§impl Clone for NotifyResponse
impl Clone for NotifyResponse
Source§fn clone(&self) -> NotifyResponse
fn clone(&self) -> NotifyResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NotifyResponse
impl Debug for NotifyResponse
Source§impl<'de> Deserialize<'de> for NotifyResponse
impl<'de> Deserialize<'de> for NotifyResponse
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>,
impl Eq for NotifyResponse
Source§impl PartialEq for NotifyResponse
impl PartialEq for NotifyResponse
Source§impl Serialize for NotifyResponse
impl Serialize for NotifyResponse
impl StructuralPartialEq for NotifyResponse
Auto Trait Implementations§
impl Freeze for NotifyResponse
impl RefUnwindSafe for NotifyResponse
impl Send for NotifyResponse
impl Sync for NotifyResponse
impl Unpin for NotifyResponse
impl UnsafeUnpin for NotifyResponse
impl UnwindSafe for NotifyResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.