use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookFork {
#[serde(rename = "enterprise", skip_serializing_if = "Option::is_none")]
pub enterprise: Option<Box<models::EnterpriseWebhooks>>,
#[serde(rename = "forkee")]
pub forkee: Box<models::WebhookForkForkee>,
#[serde(rename = "installation", skip_serializing_if = "Option::is_none")]
pub installation: Option<Box<models::SimpleInstallation>>,
#[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
pub organization: Option<Box<models::OrganizationSimpleWebhooks>>,
#[serde(rename = "repository")]
pub repository: Box<models::RepositoryWebhooks>,
#[serde(rename = "sender")]
pub sender: Box<models::SimpleUserWebhooks>,
}
impl WebhookFork {
pub fn new(forkee: models::WebhookForkForkee, repository: models::RepositoryWebhooks, sender: models::SimpleUserWebhooks) -> WebhookFork {
WebhookFork {
enterprise: None,
forkee: Box::new(forkee),
installation: None,
organization: None,
repository: Box::new(repository),
sender: Box::new(sender),
}
}
}