Skip to main content

Limitation

Enum Limitation 

Source
pub enum Limitation {
Show 23 variants TeamNotInOrganization { team: TeamName, forge: &'static str, }, TeamOrganizationPermission { team: TeamName, actual: String, expected: String, }, TeamInherited { team: TeamName, forge: &'static str, }, TeamPermissionIsOrganizationWide { team: TeamName, actual: String, expected: String, forge: &'static str, }, TeamRoleNeedsOrganization { team: TeamName, role: String, }, CollaboratorRoleNeedsOrganization { user: UserName, role: String, }, NotReported { field: &'static str, }, WrittenOnEveryApply { field: &'static str, }, Unavailable { field: &'static str, }, EnforcedByOwner { field: &'static str, }, Ignored { field: &'static str, switch: &'static str, }, MirrorOnly, ActionsUnavailable { group: &'static str, }, ActionsPrivateOnly { group: &'static str, }, SecurityUnreadable { field: &'static str, }, CustomPropertiesUnsupported, EnvironmentRuleUnmanaged { environment: String, rule: String, }, VariablesWithoutEnvironment { environment: Option<String>, }, WebhookKindLeftAlone { id: u64, kind: String, }, WebhookSecretKept { url: String, }, RequiredReviewersDropped { ruleset: String, }, UnmanagedRuleType { ruleset: String, kind: String, }, UnaddressableRule { name: String, },
}
Expand description

A setting the forge exposes but the plan cannot change or manage.

Variants§

§

TeamNotInOrganization

A declared team is not in the organization.

Fields

§team: TeamName

The declared team.

§forge: &'static str

The forge’s name.

§

TeamOrganizationPermission

A team exists, but its organization-wide permission is not the declared one.

Fields

§team: TeamName

The declared team.

§actual: String

The organization-wide permission.

§expected: String

The declared permission.

§

TeamInherited

A team reaches the repository through an all-repositories team.

Fields

§team: TeamName

The team.

§forge: &'static str

The forge’s name.

§

TeamPermissionIsOrganizationWide

The forge only changes team permissions organization-wide.

Fields

§team: TeamName

The team.

§actual: String

The permission it has.

§expected: String

The declared permission.

§forge: &'static str

The forge’s name.

§

TeamRoleNeedsOrganization

A team needs a custom role, which personal repositories lack.

Fields

§team: TeamName

The team.

§role: String

The custom role.

§

CollaboratorRoleNeedsOrganization

A collaborator needs a custom role, which personal repositories lack.

Fields

§user: UserName

The collaborator.

§role: String

The custom role.

§

NotReported

The forge does not report a setting, so it cannot be compared.

Fields

§field: &'static str

The setting.

§

WrittenOnEveryApply

The forge does not report a setting, so it is written on every apply.

Fields

§field: &'static str

The setting.

§

Unavailable

A setting does not exist for this repository.

Fields

§field: &'static str

The setting.

§

EnforcedByOwner

A setting is fixed by the owner.

Fields

§field: &'static str

The setting.

§

Ignored

A declared setting has no effect because another one switches it off.

Fields

§field: &'static str

The declared setting.

§switch: &'static str

The setting that switches it off.

§

MirrorOnly

The mirror settings are declared for a repository that is no mirror.

§

ActionsUnavailable

A GitHub Actions settings group cannot be read or written.

Fields

§group: &'static str

The group.

§

ActionsPrivateOnly

A GitHub Actions settings group exists for private repositories only.

Fields

§group: &'static str

The group.

§

SecurityUnreadable

A security setting cannot be read.

Fields

§field: &'static str

The setting.

§

CustomPropertiesUnsupported

The repository has no custom properties.

§

EnvironmentRuleUnmanaged

An environment protection rule is not managed.

Fields

§environment: String

The environment.

§rule: String

The rule type.

§

VariablesWithoutEnvironment

The variables of an environment that does not exist are not managed.

Fields

§environment: Option<String>

The environment, or none for the repository.

§

WebhookKindLeftAlone

A webhook of another kind is left alone.

Fields

§id: u64

The hook’s ID.

§kind: String

The hook’s kind.

§

WebhookSecretKept

A hand-set secret is kept, so the delivery settings stay unchanged.

Fields

§url: String

The delivery URL.

§

RequiredReviewersDropped

A ruleset has required reviewers, which an update drops.

Fields

§ruleset: String

The ruleset.

§

UnmanagedRuleType

A ruleset has a rule type the configuration cannot declare.

Fields

§ruleset: String

The ruleset.

§kind: String

The rule type.

§

UnaddressableRule

A branch rule cannot be addressed by the API routes.

Fields

§name: String

The rule’s name.

Trait Implementations§

Source§

impl Clone for Limitation

Source§

fn clone(&self) -> Limitation

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Limitation

Source§

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

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

impl Display for Limitation

Source§

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

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

impl Eq for Limitation

Source§

impl PartialEq for Limitation

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Limitation

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
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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.

§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + 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
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

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