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