pub struct Direction(/* private fields */);Expand description
The direction determines how a property is indexed.
Implementations§
Source§impl Direction
impl Direction
Sourcepub const DIRECTION_UNSPECIFIED: Direction
pub const DIRECTION_UNSPECIFIED: Direction
The direction is unspecified.
Sourcepub const ASCENDING: Direction
pub const ASCENDING: Direction
The property’s values are indexed so as to support sequencing in ascending order and also query by <, >, <=, >=, and =.
Sourcepub const DESCENDING: Direction
pub const DESCENDING: Direction
The property’s values are indexed so as to support sequencing in descending order and also query by <, >, <=, >=, and =.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Direction
impl<'de> Deserialize<'de> for Direction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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