Struct github_webhook::payload_types::StatusEvent
source · pub struct StatusEvent<'a> {Show 16 fields
pub id: usize,
pub sha: &'a str,
pub name: &'a str,
pub avatar_url: Option<&'a str>,
pub target_url: Option<&'a str>,
pub context: &'a str,
pub description: Option<&'a str>,
pub state: StatusEventState,
pub commit: StatusEventCommit<'a>,
pub branches: Vec<StatusEventBranches<'a>>,
pub created_at: &'a str,
pub updated_at: &'a str,
pub repository: Repository<'a>,
pub sender: User<'a>,
pub installation: Option<InstallationLite<'a>>,
pub organization: Option<Organization<'a>>,
}Fields§
§id: usizeThe unique identifier of the status.
sha: &'a strThe Commit SHA.
name: &'a str§avatar_url: Option<&'a str>§target_url: Option<&'a str>The optional link added to the status.
context: &'a str§description: Option<&'a str>The optional human-readable description added to the status.
state: StatusEventStateThe new state. Can be pending, success, failure, or error.
commit: StatusEventCommit<'a>§branches: Vec<StatusEventBranches<'a>>An array of branch objects containing the status’ SHA. Each branch contains the given SHA, but the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches.
created_at: &'a str§updated_at: &'a str§repository: Repository<'a>§sender: User<'a>§installation: Option<InstallationLite<'a>>§organization: Option<Organization<'a>>Trait Implementations§
source§impl<'a> Debug for StatusEvent<'a>
impl<'a> Debug for StatusEvent<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for StatusEvent<'a>
impl<'de: 'a, 'a> Deserialize<'de> for StatusEvent<'a>
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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StatusEvent<'a>
impl<'a> Send for StatusEvent<'a>
impl<'a> Sync for StatusEvent<'a>
impl<'a> Unpin for StatusEvent<'a>
impl<'a> UnwindSafe for StatusEvent<'a>
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