Expand description
Segment of a query held by the QueryBuilder until the final query is built.
Has two variants:
- QueryBuilderSegment::Str for string slices that will outlive the QueryBuilder
- QueryBuilderSegment::Ref for references to values that live in the QueryBuilder.
such references can be obtained using the
QueryBuilder::hold()
method.
Variants
Str(&'a str)
Ref(usize)
Trait Implementations
sourceimpl<'a> Clone for QueryBuilderSegment<'a>
impl<'a> Clone for QueryBuilderSegment<'a>
sourcefn clone(&self) -> QueryBuilderSegment<'a>
fn clone(&self) -> QueryBuilderSegment<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> From<&'a str> for QueryBuilderSegment<'a>
impl<'a> From<&'a str> for QueryBuilderSegment<'a>
sourceimpl<'a> From<usize> for QueryBuilderSegment<'a>
impl<'a> From<usize> for QueryBuilderSegment<'a>
sourceimpl IntoQueryBuilderSegment for QueryBuilderSegment<'_>
impl IntoQueryBuilderSegment for QueryBuilderSegment<'_>
fn into<'b>(self, _: &mut QueryBuilder<'b>) -> QueryBuilderSegment<'b>where
Self: 'b,
impl<'a> Copy for QueryBuilderSegment<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for QueryBuilderSegment<'a>
impl<'a> Send for QueryBuilderSegment<'a>
impl<'a> Sync for QueryBuilderSegment<'a>
impl<'a> Unpin for QueryBuilderSegment<'a>
impl<'a> UnwindSafe for QueryBuilderSegment<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more