pub struct ReposCreateDispatchEventRequest {
pub event_type: String,
pub client_payload: Option<HashMap<String, Value>>,
}
Fields§
§event_type: String
A custom webhook event name. Must be 100 characters or fewer.
client_payload: Option<HashMap<String, Value>>
JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10.
Implementations§
Source§impl ReposCreateDispatchEventRequest
impl ReposCreateDispatchEventRequest
pub fn new(event_type: String) -> ReposCreateDispatchEventRequest
Trait Implementations§
Source§impl Clone for ReposCreateDispatchEventRequest
impl Clone for ReposCreateDispatchEventRequest
Source§fn clone(&self) -> ReposCreateDispatchEventRequest
fn clone(&self) -> ReposCreateDispatchEventRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ReposCreateDispatchEventRequest
impl Default for ReposCreateDispatchEventRequest
Source§fn default() -> ReposCreateDispatchEventRequest
fn default() -> ReposCreateDispatchEventRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateDispatchEventRequest
impl<'de> Deserialize<'de> for ReposCreateDispatchEventRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReposCreateDispatchEventRequest
impl PartialEq for ReposCreateDispatchEventRequest
Source§fn eq(&self, other: &ReposCreateDispatchEventRequest) -> bool
fn eq(&self, other: &ReposCreateDispatchEventRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposCreateDispatchEventRequest
Auto Trait Implementations§
impl Freeze for ReposCreateDispatchEventRequest
impl RefUnwindSafe for ReposCreateDispatchEventRequest
impl Send for ReposCreateDispatchEventRequest
impl Sync for ReposCreateDispatchEventRequest
impl Unpin for ReposCreateDispatchEventRequest
impl UnwindSafe for ReposCreateDispatchEventRequest
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