#[non_exhaustive]pub struct ViewReplacement<'a> {
pub view: WrittenObject<'a>,
pub create: &'a str,
pub readers: &'a [ViewReader],
}Expand description
A view to make, and what reads it.
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.view: WrittenObject<'a>The view, spelled as its statement writes it.
create: &'a strThe whole statement that makes it, CREATE OR REPLACE VIEW … AS …,
without its terminator.
readers: &'a [ViewReader]The objects Razeri makes later in the same file that read it, directly or through another reader, the last made first.
Implementations§
Source§impl<'a> ViewReplacement<'a>
impl<'a> ViewReplacement<'a>
Sourcepub const fn new(
view: WrittenObject<'a>,
create: &'a str,
readers: &'a [ViewReader],
) -> Self
pub const fn new( view: WrittenObject<'a>, create: &'a str, readers: &'a [ViewReader], ) -> Self
A replacement, from the view, its statement and its readers.
Trait Implementations§
Source§impl<'a> Clone for ViewReplacement<'a>
impl<'a> Clone for ViewReplacement<'a>
impl<'a> Copy for ViewReplacement<'a>
Source§impl<'a> Debug for ViewReplacement<'a>
impl<'a> Debug for ViewReplacement<'a>
impl<'a> Eq for ViewReplacement<'a>
Source§impl<'a> PartialEq for ViewReplacement<'a>
impl<'a> PartialEq for ViewReplacement<'a>
impl<'a> StructuralPartialEq for ViewReplacement<'a>
Auto Trait Implementations§
impl<'a> Forget for ViewReplacement<'a>
impl<'a> Freeze for ViewReplacement<'a>
impl<'a> Move for ViewReplacement<'a>
impl<'a> RefUnwindSafe for ViewReplacement<'a>
impl<'a> Send for ViewReplacement<'a>
impl<'a> Sync for ViewReplacement<'a>
impl<'a> Unpin for ViewReplacement<'a>
impl<'a> UnsafeUnpin for ViewReplacement<'a>
impl<'a> UnwindSafe for ViewReplacement<'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