pub struct CollectionConfig {
pub path: PathBuf,
pub pattern: String,
pub context: HashMap<String, String>,
pub update: Option<String>,
}Expand description
Per-collection configuration
Fields§
§path: PathBufRoot path of the collection
pattern: StringGlob pattern for files to index
context: HashMap<String, String>Context strings keyed by path prefix
update: Option<String>Command to run before updating (e.g., git pull)
Trait Implementations§
Source§impl Clone for CollectionConfig
impl Clone for CollectionConfig
Source§fn clone(&self) -> CollectionConfig
fn clone(&self) -> CollectionConfig
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 CollectionConfig
impl Debug for CollectionConfig
Source§impl<'de> Deserialize<'de> for CollectionConfig
impl<'de> Deserialize<'de> for CollectionConfig
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 CollectionConfig
impl RefUnwindSafe for CollectionConfig
impl Send for CollectionConfig
impl Sync for CollectionConfig
impl Unpin for CollectionConfig
impl UnwindSafe for CollectionConfig
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