pub struct FirestoreQueryOrder {
pub field_name: String,
pub direction: FirestoreQueryDirection,
}Expand description
Specifies an ordering for query results based on a field.
Fields§
§field_name: StringThe path to the field to order by (e.g., “name”, “address.city”).
direction: FirestoreQueryDirectionThe direction of the ordering (ascending or descending).
Implementations§
Source§impl FirestoreQueryOrder
impl FirestoreQueryOrder
pub fn new(field_name: String, direction: FirestoreQueryDirection) -> Self
pub fn field_name(&mut self, value: String) -> &mut Self
pub fn with_field_name(self, value: String) -> Self
pub fn direction(&mut self, value: FirestoreQueryDirection) -> &mut Self
pub fn with_direction(self, value: FirestoreQueryDirection) -> Self
Source§impl FirestoreQueryOrder
impl FirestoreQueryOrder
Sourcepub fn to_string_format(&self) -> String
pub fn to_string_format(&self) -> String
Returns a string representation of the order, e.g., “fieldName asc”.
Trait Implementations§
Source§impl Clone for FirestoreQueryOrder
impl Clone for FirestoreQueryOrder
Source§fn clone(&self) -> FirestoreQueryOrder
fn clone(&self) -> FirestoreQueryOrder
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 moreSource§impl Debug for FirestoreQueryOrder
impl Debug for FirestoreQueryOrder
Source§impl<S> From<(S, FirestoreQueryDirection)> for FirestoreQueryOrder
impl<S> From<(S, FirestoreQueryDirection)> for FirestoreQueryOrder
Source§fn from(field_order: (S, FirestoreQueryDirection)) -> Self
fn from(field_order: (S, FirestoreQueryDirection)) -> Self
Converts to this type from the input type.
Source§impl From<FirestoreQueryOrder> for Order
impl From<FirestoreQueryOrder> for Order
Source§fn from(order: FirestoreQueryOrder) -> Self
fn from(order: FirestoreQueryOrder) -> Self
Converts to this type from the input type.
Source§impl From<FirestoreQueryOrderInit> for FirestoreQueryOrder
impl From<FirestoreQueryOrderInit> for FirestoreQueryOrder
Source§fn from(value: FirestoreQueryOrderInit) -> Self
fn from(value: FirestoreQueryOrderInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FirestoreQueryOrder
impl PartialEq for FirestoreQueryOrder
impl Eq for FirestoreQueryOrder
impl StructuralPartialEq for FirestoreQueryOrder
Auto Trait Implementations§
impl Freeze for FirestoreQueryOrder
impl RefUnwindSafe for FirestoreQueryOrder
impl Send for FirestoreQueryOrder
impl Sync for FirestoreQueryOrder
impl Unpin for FirestoreQueryOrder
impl UnwindSafe for FirestoreQueryOrder
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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