pub struct Organization { /* private fields */ }
Expand description
Organization
Organizations enable users to collaborate and share resources with each other in a structured way. Organizations can have members, teams, repositories, and other resources.
Implementations§
Source§impl Organization
impl Organization
Sourcepub fn id(&self) -> OrganizationId
pub fn id(&self) -> OrganizationId
Returns the organization’s OrganizationId
.
Sourcepub fn repos_url(&self) -> &Url
pub fn repos_url(&self) -> &Url
Returns the API endpoint to query the organization’s repositories.
Sourcepub fn events_url(&self) -> &Url
pub fn events_url(&self) -> &Url
Returns the API endpoint to query the organization’s events.
Sourcepub fn issues_url(&self) -> &Url
pub fn issues_url(&self) -> &Url
Returns the API endpoint to query the organization’s issues.
Sourcepub fn members_url(&self) -> &Url
pub fn members_url(&self) -> &Url
Returns the API endpoint to query the organization’s members.
Sourcepub fn public_members_url(&self) -> &Url
pub fn public_members_url(&self) -> &Url
Returns the API endpoint to query the organization’s public members.
Sourcepub fn avatar_url(&self) -> &Url
pub fn avatar_url(&self) -> &Url
Returns the URL to the organization’s avatar.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the organization’s description.
Trait Implementations§
Source§impl Clone for Organization
impl Clone for Organization
Source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
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 Organization
impl Debug for Organization
Source§impl<'de> Deserialize<'de> for Organization
impl<'de> Deserialize<'de> for Organization
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 Organization
impl Display for Organization
Source§impl Hash for Organization
impl Hash for Organization
Source§impl Ord for Organization
impl Ord for Organization
Source§fn cmp(&self, other: &Organization) -> Ordering
fn cmp(&self, other: &Organization) -> 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 Organization
impl PartialEq for Organization
Source§impl PartialOrd for Organization
impl PartialOrd for Organization
Source§impl Serialize for Organization
impl Serialize for Organization
impl Eq for Organization
impl StructuralPartialEq for Organization
Auto Trait Implementations§
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnwindSafe for Organization
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.