pub struct RemoteQuery { /* private fields */ }Expand description
Remote query builder
Implementations§
Source§impl RemoteQuery
impl RemoteQuery
Sourcepub fn sk_between(self, sk1: &[u8], sk2: &[u8]) -> Self
pub fn sk_between(self, sk1: &[u8], sk2: &[u8]) -> Self
Add a sort key between condition
Sourcepub fn sk_begins_with(self, prefix: &[u8]) -> Self
pub fn sk_begins_with(self, prefix: &[u8]) -> Self
Add a sort key begins_with condition
Sourcepub fn start_after(self, pk: &[u8], sk: Option<&[u8]>) -> Self
pub fn start_after(self, pk: &[u8], sk: Option<&[u8]>) -> Self
Set the exclusive start key for pagination
Sourcepub fn index(self, index_name: impl Into<String>) -> Self
pub fn index(self, index_name: impl Into<String>) -> Self
Query a Local Secondary Index instead of the base table
Sourcepub async fn execute(
self,
client: &mut KeystoneDbClient<Channel>,
) -> Result<RemoteQueryResponse>
pub async fn execute( self, client: &mut KeystoneDbClient<Channel>, ) -> Result<RemoteQueryResponse>
Execute the query
Auto Trait Implementations§
impl Freeze for RemoteQuery
impl RefUnwindSafe for RemoteQuery
impl Send for RemoteQuery
impl Sync for RemoteQuery
impl Unpin for RemoteQuery
impl UnsafeUnpin for RemoteQuery
impl UnwindSafe for RemoteQuery
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request