pub struct RecordIdKeyRange {
pub start: Bound<RecordIdKey>,
pub end: Bound<RecordIdKey>,
}Expand description
Represents a range of record identifier keys in SurrealDB
This type is used for range queries on record identifiers, allowing queries like “find all records with IDs between X and Y”.
Fields§
§start: Bound<RecordIdKey>The lower bound of the range
end: Bound<RecordIdKey>The upper bound of the range
Implementations§
Source§impl RecordIdKeyRange
impl RecordIdKeyRange
Sourcepub fn start(&self) -> Bound<&RecordIdKey>
pub fn start(&self) -> Bound<&RecordIdKey>
Returns the start bound of the range.
Sourcepub fn end(&self) -> Bound<&RecordIdKey>
pub fn end(&self) -> Bound<&RecordIdKey>
Returns the upper bound of the range.
Sourcepub fn into_inner(self) -> (Bound<RecordIdKey>, Bound<RecordIdKey>)
pub fn into_inner(self) -> (Bound<RecordIdKey>, Bound<RecordIdKey>)
Converts this range into the inner bounds.
Sourcepub fn into_value_range(self) -> Range
pub fn into_value_range(self) -> Range
Converts this range into a Range value.
Sourcepub fn from_value_range(range: Range) -> Result<RecordIdKeyRange, Error>
pub fn from_value_range(range: Range) -> Result<RecordIdKeyRange, Error>
Converts a Range value into a RecordIdKeyRange.
Trait Implementations§
Source§impl Clone for RecordIdKeyRange
impl Clone for RecordIdKeyRange
Source§fn clone(&self) -> RecordIdKeyRange
fn clone(&self) -> RecordIdKeyRange
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 RecordIdKeyRange
impl Debug for RecordIdKeyRange
Source§impl<'de> Deserialize<'de> for RecordIdKeyRange
impl<'de> Deserialize<'de> for RecordIdKeyRange
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordIdKeyRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordIdKeyRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<(Bound<T>, Bound<T>)> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
impl<T> From<(Bound<T>, Bound<T>)> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
Source§impl<T> From<Range<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
impl<T> From<Range<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
Source§fn from(range: Range<T>) -> RecordIdKeyRange
fn from(range: Range<T>) -> RecordIdKeyRange
Converts to this type from the input type.
Source§impl<T> From<RangeFrom<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
impl<T> From<RangeFrom<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
Source§fn from(range: RangeFrom<T>) -> RecordIdKeyRange
fn from(range: RangeFrom<T>) -> RecordIdKeyRange
Converts to this type from the input type.
Source§impl From<RangeFull> for RecordIdKeyRange
impl From<RangeFull> for RecordIdKeyRange
Source§fn from(_: RangeFull) -> RecordIdKeyRange
fn from(_: RangeFull) -> RecordIdKeyRange
Converts to this type from the input type.
Source§impl<T> From<RangeInclusive<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
impl<T> From<RangeInclusive<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
Source§fn from(range: RangeInclusive<T>) -> RecordIdKeyRange
fn from(range: RangeInclusive<T>) -> RecordIdKeyRange
Converts to this type from the input type.
Source§impl<T> From<RangeTo<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
impl<T> From<RangeTo<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
Source§fn from(range: RangeTo<T>) -> RecordIdKeyRange
fn from(range: RangeTo<T>) -> RecordIdKeyRange
Converts to this type from the input type.
Source§impl<T> From<RangeToInclusive<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
impl<T> From<RangeToInclusive<T>> for RecordIdKeyRangewhere
T: Into<RecordIdKey>,
Source§fn from(range: RangeToInclusive<T>) -> RecordIdKeyRange
fn from(range: RangeToInclusive<T>) -> RecordIdKeyRange
Converts to this type from the input type.
Source§impl From<RecordIdKeyRange> for RecordIdKey
impl From<RecordIdKeyRange> for RecordIdKey
Source§fn from(value: RecordIdKeyRange) -> RecordIdKey
fn from(value: RecordIdKeyRange) -> RecordIdKey
Converts to this type from the input type.
Source§impl FromFlatbuffers for RecordIdKeyRange
impl FromFlatbuffers for RecordIdKeyRange
Source§type Input<'bldr> = RecordIdKeyRange<'bldr>
type Input<'bldr> = RecordIdKeyRange<'bldr>
The input type from the flatbuffers builder
Source§fn from_fb(
input: <RecordIdKeyRange as FromFlatbuffers>::Input<'_>,
) -> Result<RecordIdKeyRange, Error>
fn from_fb( input: <RecordIdKeyRange as FromFlatbuffers>::Input<'_>, ) -> Result<RecordIdKeyRange, Error>
Convert a flatbuffers builder type to a type.
Source§impl Hash for RecordIdKeyRange
impl Hash for RecordIdKeyRange
Source§impl Ord for RecordIdKeyRange
impl Ord for RecordIdKeyRange
Source§fn cmp(&self, other: &RecordIdKeyRange) -> Ordering
fn cmp(&self, other: &RecordIdKeyRange) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<Range> for RecordIdKeyRange
impl PartialEq<Range> for RecordIdKeyRange
Source§impl PartialEq for RecordIdKeyRange
impl PartialEq for RecordIdKeyRange
Source§impl PartialOrd for RecordIdKeyRange
impl PartialOrd for RecordIdKeyRange
Source§impl Serialize for RecordIdKeyRange
impl Serialize for RecordIdKeyRange
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl SurrealValue for RecordIdKeyRange
impl SurrealValue for RecordIdKeyRange
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Converts this type into a SurrealDB value
Source§fn from_value(value: Value) -> Result<RecordIdKeyRange, Error>
fn from_value(value: Value) -> Result<RecordIdKeyRange, Error>
Attempts to convert a SurrealDB value into this type
Source§impl ToFlatbuffers for RecordIdKeyRange
impl ToFlatbuffers for RecordIdKeyRange
Source§type Output<'bldr> = WIPOffset<RecordIdKeyRange<'bldr>>
type Output<'bldr> = WIPOffset<RecordIdKeyRange<'bldr>>
The output type for the flatbuffers builder
Source§fn to_fb<'bldr>(
&self,
builder: &mut FlatBufferBuilder<'bldr>,
) -> Result<<RecordIdKeyRange as ToFlatbuffers>::Output<'bldr>, Error>
fn to_fb<'bldr>( &self, builder: &mut FlatBufferBuilder<'bldr>, ) -> Result<<RecordIdKeyRange as ToFlatbuffers>::Output<'bldr>, Error>
Convert the type to a flatbuffers builder type.
Source§impl ToSql for RecordIdKeyRange
impl ToSql for RecordIdKeyRange
impl Eq for RecordIdKeyRange
impl StructuralPartialEq for RecordIdKeyRange
Auto Trait Implementations§
impl Freeze for RecordIdKeyRange
impl RefUnwindSafe for RecordIdKeyRange
impl Send for RecordIdKeyRange
impl Sync for RecordIdKeyRange
impl Unpin for RecordIdKeyRange
impl UnsafeUnpin for RecordIdKeyRange
impl UnwindSafe for RecordIdKeyRange
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> Comparable<K> for Q
impl<Q, K> Comparable<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> 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