[−][src]Struct rs_es::operations::common::OptionVal
A newtype for the value of a URI option, this is to allow conversion traits to be implemented for it
Trait Implementations
impl<'a> From<&'a str> for OptionVal
[src]
Conversion from &str
to OptionVal
impl From<String> for OptionVal
[src]
impl From<i32> for OptionVal
[src]
impl From<i64> for OptionVal
[src]
impl From<u32> for OptionVal
[src]
impl From<u64> for OptionVal
[src]
impl From<bool> for OptionVal
[src]
impl From<VersionType> for OptionVal
[src]
fn from(from: VersionType) -> OptionVal
[src]
impl From<Consistency> for OptionVal
[src]
fn from(from: Consistency) -> OptionVal
[src]
impl From<DefaultOperator> for OptionVal
[src]
fn from(from: DefaultOperator) -> OptionVal
[src]
impl From<Preference> for OptionVal
[src]
fn from(from: Preference) -> OptionVal
[src]
impl From<OpType> for OptionVal
[src]
impl<'a> From<&'a Sort> for OptionVal
[src]
Conversion of a Sort
into an OptionVal
for use in search-by-URI queries
use rs_es::operations::common::OptionVal; use rs_es::operations::search::{Sort, SortField, Order}; let sort = Sort::new(vec![SortField::new("a", Some(Order::Asc)).build(), SortField::new("b", None).build()]); let op_val:OptionVal = (&sort).into(); assert_eq!("a:asc,b", op_val.0);
impl<'a> From<&'a Duration> for OptionVal
[src]
impl From<Duration> for OptionVal
[src]
impl Debug for OptionVal
[src]
Auto Trait Implementations
impl Sync for OptionVal
impl Send for OptionVal
impl Unpin for OptionVal
impl RefUnwindSafe for OptionVal
impl UnwindSafe for OptionVal
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,