pub struct MinimalRepository { /* private fields */ }
Expand description
Minimal representation of a [Repository
]
GitHub truncates data types in some API responses and webhook events to reduce the payload size.
The MinimalRepository
represents a [Repository
], but contains only the most basic fields.
Implementations§
Source§impl MinimalRepository
impl MinimalRepository
Sourcepub fn id(&self) -> RepositoryId
pub fn id(&self) -> RepositoryId
Returns the repository’s id.
Sourcepub fn name(&self) -> &RepositoryName
pub fn name(&self) -> &RepositoryName
Returns the repository’s name.
Trait Implementations§
Source§impl Clone for MinimalRepository
impl Clone for MinimalRepository
Source§fn clone(&self) -> MinimalRepository
fn clone(&self) -> MinimalRepository
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 MinimalRepository
impl Debug for MinimalRepository
Source§impl<'de> Deserialize<'de> for MinimalRepository
impl<'de> Deserialize<'de> for MinimalRepository
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 Display for MinimalRepository
impl Display for MinimalRepository
Source§impl Hash for MinimalRepository
impl Hash for MinimalRepository
Source§impl Ord for MinimalRepository
impl Ord for MinimalRepository
Source§fn cmp(&self, other: &MinimalRepository) -> Ordering
fn cmp(&self, other: &MinimalRepository) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MinimalRepository
impl PartialEq for MinimalRepository
Source§impl PartialOrd for MinimalRepository
impl PartialOrd for MinimalRepository
Source§impl Serialize for MinimalRepository
impl Serialize for MinimalRepository
impl Eq for MinimalRepository
impl StructuralPartialEq for MinimalRepository
Auto Trait Implementations§
impl Freeze for MinimalRepository
impl RefUnwindSafe for MinimalRepository
impl Send for MinimalRepository
impl Sync for MinimalRepository
impl Unpin for MinimalRepository
impl UnwindSafe for MinimalRepository
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.