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