pub struct Config {
pub repository: Repository,
pub rulesets: Option<Rulesets>,
pub access: Option<Access<Permission>>,
pub security: Security,
pub pages: Option<Pages>,
pub environments: Option<Environments>,
pub actions: Option<Actions>,
pub autolinks: Option<Autolinks>,
pub variables: Option<Variables>,
pub labels: Option<Labels<Label>>,
pub custom_properties: Option<BTreeMap<String, PropertyValue>>,
pub webhooks: Option<Webhooks>,
}Expand description
A configuration document that describes one GitHub repository.
Fields§
§repository: RepositorySettings for the repository itself.
rulesets: Option<Rulesets>Branch and tag rulesets, when configured.
access: Option<Access<Permission>>Repository team grants, when configured.
security: SecuritySecurity settings. Null fields are not managed.
pages: Option<Pages>The Pages site, when configured.
environments: Option<Environments>Deployment environments, when configured.
actions: Option<Actions>GitHub Actions settings, when configured.
autolinks: Option<Autolinks>Autolink references, when configured.
variables: Option<Variables>Actions variables, when configured.
labels: Option<Labels<Label>>Repository labels, when configured.
custom_properties: Option<BTreeMap<String, PropertyValue>>Custom property values keyed by property name, when configured.
webhooks: Option<Webhooks>Repository webhooks, when configured.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.