pub enum OptionsForm {
Absent,
Literal(Vec<(String, Expr)>),
Parameter(String),
}Expand description
The optional OPTIONS tail of a schema DDL command (ADR-0489):
the three states the old options + options_param pair
encoded in a comment only.
Variants§
Absent
No OPTIONS clause at all.
Literal(Vec<(String, Expr)>)
OPTIONS { key: <value expression>, ... }: lowered and evaluated at
execution time.
Parameter(String)
OPTIONS $param: the parameter must evaluate to a MAP at execution
time, whose entries become the command’s literal options.
Implementations§
Source§impl OptionsForm
impl OptionsForm
Sourcepub fn literal(&self) -> Option<&[(String, Expr)]>
pub fn literal(&self) -> Option<&[(String, Expr)]>
The literal map’s entries — None for the two forms that carry no
literal map, so no caller can mistake an absent clause or an
unresolved $param for an empty map.
Sourcepub fn literal_mut(&mut self) -> Option<&mut [(String, Expr)]>
pub fn literal_mut(&mut self) -> Option<&mut [(String, Expr)]>
The literal map’s entries for in-place rewriting — None for the two
forms that carry no literal map, the mutable twin of Self::literal.
Trait Implementations§
Source§impl Clone for OptionsForm
impl Clone for OptionsForm
Source§impl Debug for OptionsForm
impl Debug for OptionsForm
Source§impl PartialEq for OptionsForm
impl PartialEq for OptionsForm
impl StructuralPartialEq for OptionsForm
Auto Trait Implementations§
impl Forget for OptionsForm
impl Freeze for OptionsForm
impl Move for OptionsForm
impl RefUnwindSafe for OptionsForm
impl Send for OptionsForm
impl Sync for OptionsForm
impl Unpin for OptionsForm
impl UnsafeUnpin for OptionsForm
impl UnwindSafe for OptionsForm
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