pub struct MdSyncSpec {
pub repo: PathBuf,
pub glob: String,
pub commit_author: String,
pub flush_every: Duration,
}Fields§
§repo: PathBufRoot of the git repo we sync against. Watcher polls every
file under glob.
glob: StringGlob pattern (relative to repo) for files to sync.
Default **/*.md.
Author signature for commit-on-flush.
flush_every: DurationBuffer edits this long before issuing a single git commit. Smaller values mean more commits but smaller windows for data loss; the default 250ms matches Wuphf’s published flush cadence.
Trait Implementations§
Source§impl Clone for MdSyncSpec
impl Clone for MdSyncSpec
Source§fn clone(&self) -> MdSyncSpec
fn clone(&self) -> MdSyncSpec
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 MdSyncSpec
impl Debug for MdSyncSpec
Source§impl Default for MdSyncSpec
impl Default for MdSyncSpec
Source§impl<'de> Deserialize<'de> for MdSyncSpec
impl<'de> Deserialize<'de> for MdSyncSpec
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
impl Eq for MdSyncSpec
Source§impl PartialEq for MdSyncSpec
impl PartialEq for MdSyncSpec
Source§impl Serialize for MdSyncSpec
impl Serialize for MdSyncSpec
impl StructuralPartialEq for MdSyncSpec
Auto Trait Implementations§
impl Freeze for MdSyncSpec
impl RefUnwindSafe for MdSyncSpec
impl Send for MdSyncSpec
impl Sync for MdSyncSpec
impl Unpin for MdSyncSpec
impl UnsafeUnpin for MdSyncSpec
impl UnwindSafe for MdSyncSpec
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