pub struct Attach {
pub path: String,
pub alias: Option<String>,
pub or_replace: bool,
pub if_not_exists: bool,
pub options: Vec<(String, Option<Value>)>,
}Expand description
A bound ATTACH.
The path and the option values are constants, for the same reason a setting’s value is: nothing that opens a file wants a plan, and the pin folds them to constants before it opens anything.
Fields§
§path: StringThe path, which is :memory: or empty for a database with no file behind it.
alias: Option<String>The name after AS, or None when the name comes from the path.
or_replace: boolWhether OR REPLACE was written.
if_not_exists: boolWhether IF NOT EXISTS was written.
options: Vec<(String, Option<Value>)>The options, with the name as written and the value when one was.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attach
impl RefUnwindSafe for Attach
impl Send for Attach
impl Sync for Attach
impl Unpin for Attach
impl UnsafeUnpin for Attach
impl UnwindSafe for Attach
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