Struct OrgsUpdateRequest

Source
pub struct OrgsUpdateRequest {
Show 29 fields pub billing_email: Option<String>, pub company: Option<String>, pub email: Option<String>, pub twitter_username: Option<String>, pub location: Option<String>, pub name: Option<String>, pub description: Option<String>, pub has_organization_projects: Option<bool>, pub has_repository_projects: Option<bool>, pub default_repository_permission: Option<DefaultRepositoryPermission>, pub members_can_create_repositories: Option<bool>, pub members_can_create_internal_repositories: Option<bool>, pub members_can_create_private_repositories: Option<bool>, pub members_can_create_public_repositories: Option<bool>, pub members_allowed_repository_creation_type: Option<MembersAllowedRepositoryCreationType>, pub members_can_create_pages: Option<bool>, pub members_can_create_public_pages: Option<bool>, pub members_can_create_private_pages: Option<bool>, pub members_can_fork_private_repositories: Option<bool>, pub web_commit_signoff_required: Option<bool>, pub blog: Option<String>, pub advanced_security_enabled_for_new_repositories: Option<bool>, pub dependabot_alerts_enabled_for_new_repositories: Option<bool>, pub dependabot_security_updates_enabled_for_new_repositories: Option<bool>, pub dependency_graph_enabled_for_new_repositories: Option<bool>, pub secret_scanning_enabled_for_new_repositories: Option<bool>, pub secret_scanning_push_protection_enabled_for_new_repositories: Option<bool>, pub secret_scanning_push_protection_custom_link_enabled: Option<bool>, pub secret_scanning_push_protection_custom_link: Option<String>,
}

Fields§

§billing_email: Option<String>

Billing email address. This address is not publicized.

§company: Option<String>

The company name.

§email: Option<String>

The publicly visible email address.

§twitter_username: Option<String>

The Twitter username of the company.

§location: Option<String>

The location.

§name: Option<String>

The shorthand name of the company.

§description: Option<String>

The description of the company. The maximum size is 160 characters.

§has_organization_projects: Option<bool>

Whether an organization can use organization projects.

§has_repository_projects: Option<bool>

Whether repositories that belong to the organization can use repository projects.

§default_repository_permission: Option<DefaultRepositoryPermission>

Default permission level members have for organization repositories.

§members_can_create_repositories: Option<bool>

Whether of non-admin organization members can create repositories. Note: A parameter can override this parameter. See members_allowed_repository_creation_type in this table for details.

§members_can_create_internal_repositories: Option<bool>

Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "Restricting repository creation in your organization" in the GitHub Help documentation.

§members_can_create_private_repositories: Option<bool>

Whether organization members can create private repositories, which are visible to organization members with permission. For more information, see "Restricting repository creation in your organization" in the GitHub Help documentation.

§members_can_create_public_repositories: Option<bool>

Whether organization members can create public repositories, which are visible to anyone. For more information, see "Restricting repository creation in your organization" in the GitHub Help documentation.

§members_allowed_repository_creation_type: Option<MembersAllowedRepositoryCreationType>

Specifies which types of repositories non-admin organization members can create. private is only available to repositories that are part of an organization on GitHub Enterprise Cloud. Note: This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in members_can_create_repositories. See the parameter deprecation notice in the operation description for details.

§members_can_create_pages: Option<bool>

Whether organization members can create GitHub Pages sites. Existing published sites will not be impacted.

§members_can_create_public_pages: Option<bool>

Whether organization members can create public GitHub Pages sites. Existing published sites will not be impacted.

§members_can_create_private_pages: Option<bool>

Whether organization members can create private GitHub Pages sites. Existing published sites will not be impacted.

§members_can_fork_private_repositories: Option<bool>

Whether organization members can fork private organization repositories.

§web_commit_signoff_required: Option<bool>

Whether contributors to organization repositories are required to sign off on commits they make through GitHub’s web interface.

§blog: Option<String>§advanced_security_enabled_for_new_repositories: Option<bool>

Whether GitHub Advanced Security is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

§dependabot_alerts_enabled_for_new_repositories: Option<bool>

Whether Dependabot alerts is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

§dependabot_security_updates_enabled_for_new_repositories: Option<bool>

Whether Dependabot security updates is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

§dependency_graph_enabled_for_new_repositories: Option<bool>

Whether dependency graph is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

§secret_scanning_enabled_for_new_repositories: Option<bool>

Whether secret scanning is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

§secret_scanning_push_protection_enabled_for_new_repositories: Option<bool>

Whether secret scanning push protection is automatically enabled for new repositories. To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "Managing security managers in your organization." You can check which security and analysis features are currently enabled by using a GET /orgs/{org} request.

§secret_scanning_push_protection_custom_link_enabled: Option<bool>

Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection.

§secret_scanning_push_protection_custom_link: Option<String>

If secret_scanning_push_protection_custom_link_enabled is true, the URL that will be displayed to contributors who are blocked from pushing a secret.

Implementations§

Trait Implementations§

Source§

impl Clone for OrgsUpdateRequest

Source§

fn clone(&self) -> OrgsUpdateRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OrgsUpdateRequest

Source§

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

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

impl Default for OrgsUpdateRequest

Source§

fn default() -> OrgsUpdateRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for OrgsUpdateRequest

Source§

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 OrgsUpdateRequest

Source§

fn eq(&self, other: &OrgsUpdateRequest) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OrgsUpdateRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OrgsUpdateRequest

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,