pub struct RepositoryCreated {
pub action: RepositoryCreatedAction,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
RepositoryCreated
JSON schema
{
"title": "repository created event",
"type": "object",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: RepositoryCreatedAction
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl RepositoryCreated
impl RepositoryCreated
pub fn builder() -> RepositoryCreated
Trait Implementations§
Source§impl Clone for RepositoryCreated
impl Clone for RepositoryCreated
Source§fn clone(&self) -> RepositoryCreated
fn clone(&self) -> RepositoryCreated
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 RepositoryCreated
impl Debug for RepositoryCreated
Source§impl<'de> Deserialize<'de> for RepositoryCreated
impl<'de> Deserialize<'de> for RepositoryCreated
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 From<&RepositoryCreated> for RepositoryCreated
impl From<&RepositoryCreated> for RepositoryCreated
Source§fn from(value: &RepositoryCreated) -> Self
fn from(value: &RepositoryCreated) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryCreated> for RepositoryCreated
impl From<RepositoryCreated> for RepositoryCreated
Source§fn from(value: RepositoryCreated) -> Self
fn from(value: RepositoryCreated) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryCreated> for RepositoryEvent
impl From<RepositoryCreated> for RepositoryEvent
Source§fn from(value: RepositoryCreated) -> Self
fn from(value: RepositoryCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for RepositoryCreated
impl Serialize for RepositoryCreated
Source§impl TryFrom<RepositoryCreated> for RepositoryCreated
impl TryFrom<RepositoryCreated> for RepositoryCreated
Auto Trait Implementations§
impl Freeze for RepositoryCreated
impl RefUnwindSafe for RepositoryCreated
impl Send for RepositoryCreated
impl Sync for RepositoryCreated
impl Unpin for RepositoryCreated
impl UnwindSafe for RepositoryCreated
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