pub struct GithubPolicy {
pub enabled: bool,
pub visibility: Visibility,
pub owner: String,
pub repo: Option<String>,
pub branches: Vec<String>,
}Expand description
The github: block of a .git-ark.yml.
Fields§
§enabled: boolSet false to keep the block but turn mirroring off. Defaults to true.
visibility: VisibilityVisibility of the GitHub repo when git-ark creates it. Default: private.
owner: StringGitHub org or user that owns the mirror.
repo: Option<String>GitHub repo name; defaults to this repo’s own name when omitted.
branches: Vec<String>Branches to push to the mirror.
Trait Implementations§
Source§impl Clone for GithubPolicy
impl Clone for GithubPolicy
Source§fn clone(&self) -> GithubPolicy
fn clone(&self) -> GithubPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GithubPolicy
impl Debug for GithubPolicy
Source§impl<'de> Deserialize<'de> for GithubPolicy
impl<'de> Deserialize<'de> for GithubPolicy
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
Auto Trait Implementations§
impl Freeze for GithubPolicy
impl RefUnwindSafe for GithubPolicy
impl Send for GithubPolicy
impl Sync for GithubPolicy
impl Unpin for GithubPolicy
impl UnsafeUnpin for GithubPolicy
impl UnwindSafe for GithubPolicy
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