pub struct ViewDelegateNoUnique<'a, V: 'static> { /* private fields */ }Expand description
View delegate for views declared @@no_unique. Exposes only
find_many — find_unique and refresh() are absent at the type
level because:
find_uniqueneeds an@idfield, which@@no_uniqueviews opt out of (validator-enforced).@@materialized+@@no_uniqueis a parse-time error (concurrent refresh requires a unique index), so aViewDelegateNoUniquecan never be materialized.
PK is fixed to () because the underlying ViewDescriptor<V, ()>
stores an empty primary_key string — preventing any code path
from constructing one with a real PK type.
Implementations§
Source§impl<'a, V: 'static> ViewDelegateNoUnique<'a, V>
impl<'a, V: 'static> ViewDelegateNoUnique<'a, V>
pub fn new( runtime: &'a SqlxRuntime, descriptor: &'static ViewDescriptor<V, ()>, ) -> Self
pub fn descriptor(&self) -> &'static ViewDescriptor<V, ()>
pub fn find_many(&self) -> FindMany<'a, V, ()>
Trait Implementations§
Source§impl<'a, V: Clone + 'static> Clone for ViewDelegateNoUnique<'a, V>
impl<'a, V: Clone + 'static> Clone for ViewDelegateNoUnique<'a, V>
Source§fn clone(&self) -> ViewDelegateNoUnique<'a, V>
fn clone(&self) -> ViewDelegateNoUnique<'a, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, V: Copy + 'static> Copy for ViewDelegateNoUnique<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for ViewDelegateNoUnique<'a, V>
impl<'a, V> !RefUnwindSafe for ViewDelegateNoUnique<'a, V>
impl<'a, V> Send for ViewDelegateNoUnique<'a, V>
impl<'a, V> Sync for ViewDelegateNoUnique<'a, V>
impl<'a, V> Unpin for ViewDelegateNoUnique<'a, V>
impl<'a, V> UnsafeUnpin for ViewDelegateNoUnique<'a, V>
impl<'a, V> !UnwindSafe for ViewDelegateNoUnique<'a, V>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more