pub struct IndexSettingsQueryString {
pub lenient: Option<StringifiedBoolean>,
}Fields§
§lenient: Option<StringifiedBoolean>Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
Implementations§
Source§impl IndexSettingsQueryString
impl IndexSettingsQueryString
pub fn new() -> IndexSettingsQueryString
Trait Implementations§
Source§impl Clone for IndexSettingsQueryString
impl Clone for IndexSettingsQueryString
Source§fn clone(&self) -> IndexSettingsQueryString
fn clone(&self) -> IndexSettingsQueryString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexSettingsQueryString
impl Debug for IndexSettingsQueryString
Source§impl Default for IndexSettingsQueryString
impl Default for IndexSettingsQueryString
Source§fn default() -> IndexSettingsQueryString
fn default() -> IndexSettingsQueryString
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexSettingsQueryString
impl<'de> Deserialize<'de> for IndexSettingsQueryString
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
Source§impl PartialEq for IndexSettingsQueryString
impl PartialEq for IndexSettingsQueryString
Source§fn eq(&self, other: &IndexSettingsQueryString) -> bool
fn eq(&self, other: &IndexSettingsQueryString) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexSettingsQueryString
impl Serialize for IndexSettingsQueryString
impl StructuralPartialEq for IndexSettingsQueryString
Auto Trait Implementations§
impl Freeze for IndexSettingsQueryString
impl RefUnwindSafe for IndexSettingsQueryString
impl Send for IndexSettingsQueryString
impl Sync for IndexSettingsQueryString
impl Unpin for IndexSettingsQueryString
impl UnsafeUnpin for IndexSettingsQueryString
impl UnwindSafe for IndexSettingsQueryString
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