pub struct SafeHouseClone {
pub path: String,
pub create_source: bool,
pub git_dir: Option<String>,
pub depth: Option<u32>,
pub timeout_secs: Option<u64>,
pub max_bytes: Option<u64>,
}Expand description
Where a cloned safe house goes. Crosses as a value, inside a SafeHouseSpec.
Fields§
§path: StringThe working directory: a directory that must not exist yet.
create_source: boolFirst make source an empty bare repository whose HEAD is the spec’s base when it
is a local path or file:// URL that does not exist.
git_dir: Option<String>Keep the repository’s git directory here, a directory that must not exist yet, instead
of .git inside path: the working directory then holds no .git at all, so whoever
writes there cannot reach the repository’s configuration or hooks.
depth: Option<u32>Fetch only the last this many commits of base (a shallow clone); None fetches its
whole history.
timeout_secs: Option<u64>Give up on the clone, and remove what it made, after this many seconds; None keeps
the provider’s own limit.
max_bytes: Option<u64>Give up on the clone, and remove what it made, once its working directory and git
directory hold more than this many bytes; None sets no limit.
Trait Implementations§
Source§impl Clone for SafeHouseClone
impl Clone for SafeHouseClone
Source§impl Debug for SafeHouseClone
impl Debug for SafeHouseClone
Source§impl<'de> Deserialize<'de> for SafeHouseClone
impl<'de> Deserialize<'de> for SafeHouseClone
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>,
impl Eq for SafeHouseClone
Source§impl FromValue for SafeHouseClone
impl FromValue for SafeHouseClone
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.