#[non_exhaustive]pub struct WrongPayloadVersion {
pub detected_version: u32,
pub payload_version: Option<String>,
pub payload_version_present: bool,
pub raw: String,
pub link: Option<String>,
}Expand description
A correctly signed body in another payload version (e.g. retries in the v2 format for
about 2 h after a webhook was switched to v3). It is a result, not an error: answer it with
a 2xx and keep raw if you need the data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.detected_version: u32Version by the server’s rule: 3 only for the JSON number 3, otherwise 2.
payload_version: Option<String>payloadVersion as received (JSON text, e.g. "3" with quotes); None when absent.
payload_version_present: boolWhether the body had a payloadVersion key.
raw: StringThe verified body text, exactly as received.
link: Option<String>The article link, when it can be read.
Implementations§
Trait Implementations§
Source§impl Clone for WrongPayloadVersion
impl Clone for WrongPayloadVersion
Source§impl Debug for WrongPayloadVersion
impl Debug for WrongPayloadVersion
impl Eq for WrongPayloadVersion
Source§impl PartialEq for WrongPayloadVersion
impl PartialEq for WrongPayloadVersion
impl StructuralPartialEq for WrongPayloadVersion
Auto Trait Implementations§
impl Forget for WrongPayloadVersion
impl Freeze for WrongPayloadVersion
impl Move for WrongPayloadVersion
impl RefUnwindSafe for WrongPayloadVersion
impl Send for WrongPayloadVersionwhere
RawVecInner: Send,
impl Sync for WrongPayloadVersionwhere
RawVecInner: Sync,
impl Unpin for WrongPayloadVersion
impl UnsafeUnpin for WrongPayloadVersion
impl UnwindSafe for WrongPayloadVersionwhere
RawVecInner: UnwindSafe,
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