pub struct RepoConfig {
pub default_actor: Option<String>,
pub lock_policy: Option<String>,
pub verify_signatures: Option<String>,
pub snapshot: Option<SnapshotConfig>,
}Expand description
Repo-level configuration stored in .git/grite/config.toml
Fields§
§default_actor: Option<String>Default actor ID (hex string)
lock_policy: Option<String>Lock policy: “off”, “warn”, or “require”
verify_signatures: Option<String>Signature verification policy: “off”, “warn”, or “require”
snapshot: Option<SnapshotConfig>Snapshot configuration
Implementations§
Source§impl RepoConfig
impl RepoConfig
Sourcepub fn get_lock_policy(&self) -> LockPolicy
pub fn get_lock_policy(&self) -> LockPolicy
Get the lock policy, defaulting to Warn if not set
Sourcepub fn get_verification_policy(&self) -> VerificationPolicy
pub fn get_verification_policy(&self) -> VerificationPolicy
Get the verification policy, defaulting to Off if not set
Trait Implementations§
Source§impl Clone for RepoConfig
impl Clone for RepoConfig
Source§fn clone(&self) -> RepoConfig
fn clone(&self) -> RepoConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RepoConfig
impl Debug for RepoConfig
Source§impl Default for RepoConfig
impl Default for RepoConfig
Source§fn default() -> RepoConfig
fn default() -> RepoConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepoConfig
impl<'de> Deserialize<'de> for RepoConfig
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 RepoConfig
impl RefUnwindSafe for RepoConfig
impl Send for RepoConfig
impl Sync for RepoConfig
impl Unpin for RepoConfig
impl UnwindSafe for RepoConfig
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