pub struct WatchStarted {
pub action: WatchStartedAction,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
WatchStarted
JSON schema
{
"title": "watch started event",
"type": "object",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"started"
]
},
"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: WatchStartedAction
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl WatchStarted
impl WatchStarted
pub fn builder() -> WatchStarted
Trait Implementations§
Source§impl Clone for WatchStarted
impl Clone for WatchStarted
Source§fn clone(&self) -> WatchStarted
fn clone(&self) -> WatchStarted
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 WatchStarted
impl Debug for WatchStarted
Source§impl<'de> Deserialize<'de> for WatchStarted
impl<'de> Deserialize<'de> for WatchStarted
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<&WatchStarted> for WatchStarted
impl From<&WatchStarted> for WatchStarted
Source§fn from(value: &WatchStarted) -> Self
fn from(value: &WatchStarted) -> Self
Converts to this type from the input type.
Source§impl From<WatchEvent> for WatchStarted
impl From<WatchEvent> for WatchStarted
Source§fn from(value: WatchEvent) -> Self
fn from(value: WatchEvent) -> Self
Converts to this type from the input type.
Source§impl From<WatchStarted> for WatchEvent
impl From<WatchStarted> for WatchEvent
Source§fn from(value: WatchStarted) -> Self
fn from(value: WatchStarted) -> Self
Converts to this type from the input type.
Source§impl From<WatchStarted> for WatchStarted
impl From<WatchStarted> for WatchStarted
Source§fn from(value: WatchStarted) -> Self
fn from(value: WatchStarted) -> Self
Converts to this type from the input type.
Source§impl Serialize for WatchStarted
impl Serialize for WatchStarted
Source§impl TryFrom<WatchStarted> for WatchStarted
impl TryFrom<WatchStarted> for WatchStarted
Auto Trait Implementations§
impl Freeze for WatchStarted
impl RefUnwindSafe for WatchStarted
impl Send for WatchStarted
impl Sync for WatchStarted
impl Unpin for WatchStarted
impl UnwindSafe for WatchStarted
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