Struct octocrab::models::orgs::Organization
source · #[non_exhaustive]pub struct Organization {Show 41 fields
pub login: String,
pub id: OrgId,
pub node_id: String,
pub url: Url,
pub repos_url: Url,
pub events_url: Url,
pub hooks_url: Url,
pub issues_url: Url,
pub members_url: Url,
pub public_members_url: Url,
pub avatar_url: Url,
pub description: Option<String>,
pub name: Option<String>,
pub company: Option<String>,
pub blog: Option<String>,
pub location: Option<String>,
pub email: Option<String>,
pub is_verified: Option<bool>,
pub has_organization_projects: Option<bool>,
pub has_repository_projects: Option<bool>,
pub public_repos: Option<u32>,
pub public_gists: Option<u32>,
pub followers: Option<u32>,
pub following: Option<u32>,
pub html_url: Option<Url>,
pub created_at: Option<DateTime<Utc>>,
pub type: Option<String>,
pub total_private_repos: Option<i64>,
pub owned_private_repos: Option<i64>,
pub private_gists: Option<i64>,
pub disk_usage: Option<i64>,
pub collaborators: Option<i64>,
pub billing_email: Option<String>,
pub plan: Option<Plan>,
pub default_repository_settings: Option<String>,
pub members_can_create_repositories: Option<bool>,
pub two_factor_requirement_enabled: Option<bool>,
pub members_allowed_repository_creation_type: Option<String>,
pub members_can_create_public_repositories: Option<bool>,
pub members_can_create_private_repositories: Option<bool>,
pub members_can_create_internal_repositories: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.login: String
§id: OrgId
§node_id: String
§url: Url
§repos_url: Url
§events_url: Url
§hooks_url: Url
§issues_url: Url
§members_url: Url
§public_members_url: Url
§avatar_url: Url
§description: Option<String>
§name: Option<String>
§company: Option<String>
§blog: Option<String>
§location: Option<String>
§email: Option<String>
§is_verified: Option<bool>
§has_organization_projects: Option<bool>
§has_repository_projects: Option<bool>
§public_repos: Option<u32>
§public_gists: Option<u32>
§followers: Option<u32>
§following: Option<u32>
§html_url: Option<Url>
§created_at: Option<DateTime<Utc>>
§type: Option<String>
§total_private_repos: Option<i64>
§owned_private_repos: Option<i64>
§private_gists: Option<i64>
§disk_usage: Option<i64>
§collaborators: Option<i64>
§billing_email: Option<String>
§plan: Option<Plan>
§default_repository_settings: Option<String>
§members_can_create_repositories: Option<bool>
§two_factor_requirement_enabled: Option<bool>
§members_allowed_repository_creation_type: Option<String>
§members_can_create_public_repositories: Option<bool>
§members_can_create_private_repositories: Option<bool>
§members_can_create_internal_repositories: Option<bool>
Trait Implementations§
source§impl Clone for Organization
impl Clone for Organization
source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
Returns a copy 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 PartialEq for Organization
impl PartialEq for Organization
source§fn eq(&self, other: &Organization) -> bool
fn eq(&self, other: &Organization) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Organization
impl Serialize 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