pub struct RepoPolicy {
pub backup_refs: Vec<String>,
pub github: Option<GithubPolicy>,
}Expand description
A repo’s committed .git-ark.yml.
Fields§
§backup_refs: Vec<String>Refs whose push earns the durable, encrypted S3 backup. When non-empty
this overrides the host’s central backup_refs; empty → fall back to it.
github: Option<GithubPolicy>Optional GitHub mirror. Omitted (or enabled: false) → no mirror.
Implementations§
Source§impl RepoPolicy
impl RepoPolicy
Sourcepub fn parse(yaml: &str) -> Result<RepoPolicy>
pub fn parse(yaml: &str) -> Result<RepoPolicy>
Parse a .git-ark.yml document. A null document — an empty file,
whitespace, or comments only — is a valid “no policy” and yields all
defaults rather than an error. Deserializing into Option maps that null
to None instead of failing on the absent struct.
Trait Implementations§
Source§impl Clone for RepoPolicy
impl Clone for RepoPolicy
Source§fn clone(&self) -> RepoPolicy
fn clone(&self) -> RepoPolicy
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 RepoPolicy
impl Debug for RepoPolicy
Source§impl Default for RepoPolicy
impl Default for RepoPolicy
Source§fn default() -> RepoPolicy
fn default() -> RepoPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepoPolicy
impl<'de> Deserialize<'de> for RepoPolicy
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 RepoPolicy
impl RefUnwindSafe for RepoPolicy
impl Send for RepoPolicy
impl Sync for RepoPolicy
impl Unpin for RepoPolicy
impl UnsafeUnpin for RepoPolicy
impl UnwindSafe for RepoPolicy
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