pub struct Config {
pub repository: Repository,
pub branch_rules: Option<BranchRules>,
pub access: Option<Access<Permission>>,
pub labels: Option<Labels<Label>>,
pub tag_protection: Option<TagProtection>,
pub webhooks: Option<Webhooks>,
pub deploy_keys: Option<DeployKeys>,
pub actions_variables: Option<ActionsVariables>,
}Expand description
A configuration document that describes one Forgejo repository.
Fields§
§repository: RepositorySettings for the repository itself.
branch_rules: Option<BranchRules>Branch protection rules, when configured.
access: Option<Access<Permission>>Repository team grants, when configured.
labels: Option<Labels<Label>>Repository labels, when configured.
tag_protection: Option<TagProtection>Tag protections keyed by name pattern, when configured.
webhooks: Option<Webhooks>Repository webhooks, when configured.
deploy_keys: Option<DeployKeys>Repository deploy keys, when configured.
actions_variables: Option<ActionsVariables>Repository Actions variables, 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.