pub struct NestedPathBuilder { /* private fields */ }Available on crate feature
backend-postgres only.Expand description
Builder for NESTED PATH columns in JSON_TABLE
Implementationsยง
Sourceยงimpl NestedPathBuilder
impl NestedPathBuilder
Sourcepub fn json_path_name<T>(self, name: T) -> Self
pub fn json_path_name<T>(self, name: T) -> Self
Set the JSON path name (AS clause)
Sourcepub fn ordinality_column<N>(self, name: N) -> Self
pub fn ordinality_column<N>(self, name: N) -> Self
Add a FOR ORDINALITY column to the nested path
Sourcepub fn explicit_path(self, value: bool) -> Self
pub fn explicit_path(self, value: bool) -> Self
Explicitly specify the path keyword
Sourcepub fn column<N, T>(
self,
name: N,
column_type: T,
) -> ColumnBuilder<NestedPathBuilder>
pub fn column<N, T>( self, name: N, column_type: T, ) -> ColumnBuilder<NestedPathBuilder>
Add a regular column to the nested path
Sourcepub fn exists_column<N, T>(
self,
name: N,
column_type: T,
) -> ExistsColumnBuilder<NestedPathBuilder>
pub fn exists_column<N, T>( self, name: N, column_type: T, ) -> ExistsColumnBuilder<NestedPathBuilder>
Add an EXISTS column to the nested path
Sourcepub fn nested<P>(self, path: P) -> NestedPathBuilder
pub fn nested<P>(self, path: P) -> NestedPathBuilder
Add another NESTED PATH column to the nested path
Sourcepub fn build_nested(self) -> Builder
pub fn build_nested(self) -> Builder
Finish building this nested path and return to the main builder
Trait Implementationsยง
Sourceยงimpl Clone for NestedPathBuilder
impl Clone for NestedPathBuilder
Sourceยงfn clone(&self) -> NestedPathBuilder
fn clone(&self) -> NestedPathBuilder
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementationsยง
impl Freeze for NestedPathBuilder
impl RefUnwindSafe for NestedPathBuilder
impl Send for NestedPathBuilder
impl Sync for NestedPathBuilder
impl Unpin for NestedPathBuilder
impl UnwindSafe for NestedPathBuilder
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