#[non_exhaustive]pub struct WrittenObject<'a> {
pub schema: Option<&'a str>,
pub name: &'a str,
pub relation: &'a str,
}Expand description
An object a statement names, spelled the way the statement writes it: its schema as a container is written, its own name through the dialect’s quoting, and the two qualified together.
A statement that runs only where the engine’s catalogue says it should needs both the written form, to run, and the parts, to look up; an engine that folds a plain name to capitals holds it in its catalogue that way, and a quoted one as written.
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.schema: Option<&'a str>The schema, as the statement writes it, where the object names one.
name: &'a strThe object’s own name, as the statement writes it — quoted where the dialect quotes.
relation: &'a strThe schema and the name, qualified as the statement writes them.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for WrittenObject<'a>
impl<'a> Clone for WrittenObject<'a>
impl<'a> Copy for WrittenObject<'a>
Source§impl<'a> Debug for WrittenObject<'a>
impl<'a> Debug for WrittenObject<'a>
impl<'a> Eq for WrittenObject<'a>
Source§impl<'a> PartialEq for WrittenObject<'a>
impl<'a> PartialEq for WrittenObject<'a>
impl<'a> StructuralPartialEq for WrittenObject<'a>
Auto Trait Implementations§
impl<'a> Forget for WrittenObject<'a>
impl<'a> Freeze for WrittenObject<'a>
impl<'a> Move for WrittenObject<'a>
impl<'a> RefUnwindSafe for WrittenObject<'a>
impl<'a> Send for WrittenObject<'a>
impl<'a> Sync for WrittenObject<'a>
impl<'a> Unpin for WrittenObject<'a>
impl<'a> UnsafeUnpin for WrittenObject<'a>
impl<'a> UnwindSafe for WrittenObject<'a>
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