github::activity

Struct Actor

Source
pub struct Actor {
Show 16 fields pub id: u64, pub login: String, pub gravatar_id: String, pub avatar_url: String, pub url: String, pub html_url: Option<String>, pub followers_url: Option<String>, pub following_url: Option<String>, pub gists_url: Option<String>, pub starred_url: Option<String>, pub subscriptions_url: Option<String>, pub organizations_url: Option<String>, pub repos_url: Option<String>, pub events_url: Option<String>, pub received_events_url: Option<String>, pub site_admin: Option<bool>,
}
Expand description

Actor contains all info on the user generating the event.

Fields§

§id: u64§login: String§gravatar_id: String§avatar_url: String§url: String§html_url: Option<String>§followers_url: Option<String>§following_url: Option<String>§gists_url: Option<String>§starred_url: Option<String>§subscriptions_url: Option<String>§organizations_url: Option<String>§repos_url: Option<String>§events_url: Option<String>§received_events_url: Option<String>§site_admin: Option<bool>

Trait Implementations§

Source§

impl Debug for Actor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Decodable for Actor

Source§

fn decode<__D: Decoder>(d: &mut __D) -> Result<Actor, __D::Error>

Deserialize a value using a Decoder.

Auto Trait Implementations§

§

impl Freeze for Actor

§

impl RefUnwindSafe for Actor

§

impl Send for Actor

§

impl Sync for Actor

§

impl Unpin for Actor

§

impl UnwindSafe for Actor

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.