pub struct PayloadField {
pub name: &'static str,
pub value_type: PayloadValueType,
pub required: bool,
pub description: &'static str,
}Expand description
A field expected in a hook payload.
Fields§
§name: &'static strField name as it appears in the canonical payload descriptor.
value_type: PayloadValueTypeField value type.
required: boolWhether the field is required for the canonical event.
description: &'static strHuman-facing field description.
Trait Implementations§
Source§impl Clone for PayloadField
impl Clone for PayloadField
Source§fn clone(&self) -> PayloadField
fn clone(&self) -> PayloadField
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 PayloadField
impl Debug for PayloadField
impl Eq for PayloadField
Source§impl PartialEq for PayloadField
impl PartialEq for PayloadField
Source§impl Serialize for PayloadField
impl Serialize for PayloadField
impl StructuralPartialEq for PayloadField
Auto Trait Implementations§
impl Freeze for PayloadField
impl RefUnwindSafe for PayloadField
impl Send for PayloadField
impl Sync for PayloadField
impl Unpin for PayloadField
impl UnsafeUnpin for PayloadField
impl UnwindSafe for PayloadField
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