pub enum Source {
Memory(String),
Path(PathBuf),
}Expand description
The source of the builder’s database.
Variants§
Memory(String)
Use an in-memory database using the given string as a unique ID.
Path(PathBuf)
Use the database at the given path.
Implementations§
Source§impl Source
impl Source
Sourcepub fn default_memory() -> Self
pub fn default_memory() -> Self
A temporary, in-memory DB with a default ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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