Struct structsy::StructsyConfig
source · pub struct StructsyConfig { /* private fields */ }
Expand description
Configuration builder for open/create a Structsy file.
Example
use structsy::Structsy;
let config = Structsy::config("path/to/file.stry");
let config = config.create(false);
let stry = Structsy::open(config)?;
Implementations§
source§impl StructsyConfig
impl StructsyConfig
sourcepub fn create(self, create: bool) -> StructsyConfig
pub fn create(self, create: bool) -> StructsyConfig
Set flag to create file if it does not exist
Trait Implementations§
source§impl<T: AsRef<Path>> From<T> for StructsyConfig
impl<T: AsRef<Path>> From<T> for StructsyConfig
source§fn from(path: T) -> StructsyConfig
fn from(path: T) -> StructsyConfig
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for StructsyConfig
impl Send for StructsyConfig
impl Sync for StructsyConfig
impl Unpin for StructsyConfig
impl UnwindSafe for StructsyConfig
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