pub struct StarCreated {
pub action: StarCreatedAction,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
pub starred_at: DateTime<Utc>,
}
Expand description
StarCreated
JSON schema
{
"title": "star created event",
"type": "object",
"required": [
"action",
"repository",
"sender",
"starred_at"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
},
"starred_at": {
"description": "The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action.",
"type": "string",
"format": "date-time"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: StarCreatedAction
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
§starred_at: DateTime<Utc>
The time the star was created. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
. Will be null
for the deleted
action.
Implementations§
Source§impl StarCreated
impl StarCreated
pub fn builder() -> StarCreated
Trait Implementations§
Source§impl Clone for StarCreated
impl Clone for StarCreated
Source§fn clone(&self) -> StarCreated
fn clone(&self) -> StarCreated
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 StarCreated
impl Debug for StarCreated
Source§impl<'de> Deserialize<'de> for StarCreated
impl<'de> Deserialize<'de> for StarCreated
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<&StarCreated> for StarCreated
impl From<&StarCreated> for StarCreated
Source§fn from(value: &StarCreated) -> Self
fn from(value: &StarCreated) -> Self
Converts to this type from the input type.
Source§impl From<StarCreated> for StarCreated
impl From<StarCreated> for StarCreated
Source§fn from(value: StarCreated) -> Self
fn from(value: StarCreated) -> Self
Converts to this type from the input type.
Source§impl From<StarCreated> for StarEvent
impl From<StarCreated> for StarEvent
Source§fn from(value: StarCreated) -> Self
fn from(value: StarCreated) -> Self
Converts to this type from the input type.
Source§impl Serialize for StarCreated
impl Serialize for StarCreated
Source§impl TryFrom<StarCreated> for StarCreated
impl TryFrom<StarCreated> for StarCreated
Auto Trait Implementations§
impl Freeze for StarCreated
impl RefUnwindSafe for StarCreated
impl Send for StarCreated
impl Sync for StarCreated
impl Unpin for StarCreated
impl UnwindSafe for StarCreated
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