#[non_exhaustive]pub struct ViewReader {
pub kind: ReaderKind,
pub schema: Option<String>,
pub name: String,
pub relation: String,
pub parameter_types: Vec<String>,
}Expand description
One object Razeri makes later in the same file that reads a view.
Every name arrives spelled as the statements write it: quoted where the dialect quotes, and qualified.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: ReaderKindWhat kind of object it is.
schema: Option<String>Its schema, as the statements write it, where it has one.
name: StringIts own name, as the statements write it.
relation: StringThe schema and the name, qualified as the statements write them.
parameter_types: Vec<String>A routine’s parameter types, in order, spelled as its CREATE spells
them; empty for a view and for a routine that takes none.
Implementations§
Source§impl ViewReader
impl ViewReader
Sourcepub const fn new(
kind: ReaderKind,
schema: Option<String>,
name: String,
relation: String,
parameter_types: Vec<String>,
) -> Self
pub const fn new( kind: ReaderKind, schema: Option<String>, name: String, relation: String, parameter_types: Vec<String>, ) -> Self
A reader, from its kind, its written names and its parameter types.
Sourcepub fn object(&self) -> WrittenObject<'_>
pub fn object(&self) -> WrittenObject<'_>
The reader as a WrittenObject, for a statement that names it.
Trait Implementations§
Source§impl Clone for ViewReader
impl Clone for ViewReader
Source§impl Debug for ViewReader
impl Debug for ViewReader
impl Eq for ViewReader
Source§impl PartialEq for ViewReader
impl PartialEq for ViewReader
impl StructuralPartialEq for ViewReader
Auto Trait Implementations§
impl Forget for ViewReader
impl Freeze for ViewReader
impl Move for ViewReader
impl RefUnwindSafe for ViewReader
impl Send for ViewReader
impl Sync for ViewReader
impl Unpin for ViewReader
impl UnsafeUnpin for ViewReader
impl UnwindSafe for ViewReader
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