pub struct WebhookStatus {Show 17 fields
pub avatar_url: Option<Option<String>>,
pub branches: Vec<WebhookStatusBranchesInner>,
pub commit: Box<WebhookStatusCommit>,
pub context: String,
pub created_at: String,
pub description: Option<String>,
pub enterprise: Option<Box<EnterpriseWebhooks>>,
pub id: i32,
pub installation: Option<Box<SimpleInstallation>>,
pub name: String,
pub organization: Option<Box<OrganizationSimpleWebhooks>>,
pub repository: Box<RepositoryWebhooks>,
pub sender: Box<SimpleUserWebhooks>,
pub sha: String,
pub state: State,
pub target_url: Option<String>,
pub updated_at: String,
}
Fields§
§avatar_url: Option<Option<String>>
§branches: Vec<WebhookStatusBranchesInner>
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.
commit: Box<WebhookStatusCommit>
§context: String
§created_at: String
§description: Option<String>
The optional human-readable description added to the status.
enterprise: Option<Box<EnterpriseWebhooks>>
§id: i32
The unique identifier of the status.
installation: Option<Box<SimpleInstallation>>
§name: String
§organization: Option<Box<OrganizationSimpleWebhooks>>
§repository: Box<RepositoryWebhooks>
§sender: Box<SimpleUserWebhooks>
§sha: String
The Commit SHA.
state: State
The new state. Can be pending
, success
, failure
, or error
.
target_url: Option<String>
The optional link added to the status.
updated_at: String
Implementations§
Source§impl WebhookStatus
impl WebhookStatus
pub fn new( branches: Vec<WebhookStatusBranchesInner>, commit: WebhookStatusCommit, context: String, created_at: String, description: Option<String>, id: i32, name: String, repository: RepositoryWebhooks, sender: SimpleUserWebhooks, sha: String, state: State, target_url: Option<String>, updated_at: String, ) -> WebhookStatus
Trait Implementations§
Source§impl Clone for WebhookStatus
impl Clone for WebhookStatus
Source§fn clone(&self) -> WebhookStatus
fn clone(&self) -> WebhookStatus
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 Debug for WebhookStatus
impl Debug for WebhookStatus
Source§impl Default for WebhookStatus
impl Default for WebhookStatus
Source§fn default() -> WebhookStatus
fn default() -> WebhookStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookStatus
impl<'de> Deserialize<'de> for WebhookStatus
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 WebhookStatus
impl PartialEq for WebhookStatus
Source§impl Serialize for WebhookStatus
impl Serialize for WebhookStatus
impl StructuralPartialEq for WebhookStatus
Auto Trait Implementations§
impl Freeze for WebhookStatus
impl RefUnwindSafe for WebhookStatus
impl Send for WebhookStatus
impl Sync for WebhookStatus
impl Unpin for WebhookStatus
impl UnwindSafe for WebhookStatus
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