pub struct RoutineDeclaration {
pub name: String,
pub data_type: String,
pub declared_type: Option<DataType>,
pub default: Option<String>,
}Expand description
One local variable the routine declares before its body runs.
Empty for functions; a procedure’s declarations are the ones Razeri’s composed load needs.
Fields§
§name: StringThe variable’s name, unquoted and undecorated.
data_type: StringIts type, in this dialect’s column spelling — a declaration is the one
place Oracle keeps the precision a parameter list refuses, so this is
render_data_type and not the
parameter spelling.
declared_type: Option<DataType>The type the string above was rendered from, where Razeri composed this routine from a typed design.
default: Option<String>The initial value, where the routine declares one.
Trait Implementations§
Source§impl Clone for RoutineDeclaration
impl Clone for RoutineDeclaration
Source§impl Debug for RoutineDeclaration
impl Debug for RoutineDeclaration
impl Eq for RoutineDeclaration
Source§impl PartialEq for RoutineDeclaration
impl PartialEq for RoutineDeclaration
impl StructuralPartialEq for RoutineDeclaration
Auto Trait Implementations§
impl Forget for RoutineDeclaration
impl Freeze for RoutineDeclaration
impl Move for RoutineDeclaration
impl RefUnwindSafe for RoutineDeclaration
impl Send for RoutineDeclaration
impl Sync for RoutineDeclaration
impl Unpin for RoutineDeclaration
impl UnsafeUnpin for RoutineDeclaration
impl UnwindSafe for RoutineDeclaration
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