Struct githuber::api::repos::CreateARepositoryDispatchEvent
source · pub struct CreateARepositoryDispatchEvent<'a> {
pub owner: &'a str,
pub repo: &'a str,
pub event_type: &'a str,
pub client_payload: Option<&'a str>,
}
Expand description
GitHub reference(s):
Fields
owner: &'a str
repo: &'a str
event_type: &'a str
client_payload: Option<&'a str>
Implementations
sourceimpl<'a> CreateARepositoryDispatchEvent<'a>
impl<'a> CreateARepositoryDispatchEvent<'a>
sourcepub fn new(owner: &'a str, repo: &'a str, event_type: &'a str) -> Self
pub fn new(owner: &'a str, repo: &'a str, event_type: &'a str) -> Self
Build a CreateARepositoryDispatchEvent
instance.
sourcepub fn event_type(self, event_type: &'a str) -> Self
pub fn event_type(self, event_type: &'a str) -> Self
Set a new event_type
.
sourcepub fn client_payload(self, client_payload: &'a str) -> Self
pub fn client_payload(self, client_payload: &'a str) -> Self
Set a new client_payload
.
Trait Implementations
sourceimpl<'a> Api for CreateARepositoryDispatchEvent<'a>
impl<'a> Api for CreateARepositoryDispatchEvent<'a>
sourceimpl<'a> ApiExt for CreateARepositoryDispatchEvent<'a>
impl<'a> ApiExt for CreateARepositoryDispatchEvent<'a>
sourceimpl<'a> Clone for CreateARepositoryDispatchEvent<'a>
impl<'a> Clone for CreateARepositoryDispatchEvent<'a>
sourcefn clone(&self) -> CreateARepositoryDispatchEvent<'a>
fn clone(&self) -> CreateARepositoryDispatchEvent<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for CreateARepositoryDispatchEvent<'a>
impl<'a> Debug for CreateARepositoryDispatchEvent<'a>
sourceimpl<'a> PartialEq<CreateARepositoryDispatchEvent<'a>> for CreateARepositoryDispatchEvent<'a>
impl<'a> PartialEq<CreateARepositoryDispatchEvent<'a>> for CreateARepositoryDispatchEvent<'a>
sourcefn eq(&self, other: &CreateARepositoryDispatchEvent<'a>) -> bool
fn eq(&self, other: &CreateARepositoryDispatchEvent<'a>) -> bool
impl<'a> Eq for CreateARepositoryDispatchEvent<'a>
impl<'a> StructuralEq for CreateARepositoryDispatchEvent<'a>
impl<'a> StructuralPartialEq for CreateARepositoryDispatchEvent<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateARepositoryDispatchEvent<'a>
impl<'a> Send for CreateARepositoryDispatchEvent<'a>
impl<'a> Sync for CreateARepositoryDispatchEvent<'a>
impl<'a> Unpin for CreateARepositoryDispatchEvent<'a>
impl<'a> UnwindSafe for CreateARepositoryDispatchEvent<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more