pub struct DynamicParameterValue {
pub string: Option<Vec<String>>,
pub number: Option<Vec<f64>>,
pub uri: Option<Vec<String>>,
pub token: Option<Vec<TokenIndex>>,
pub date: Option<Vec<DateRange>>,
pub reference: Option<Vec<ReferenceIndex>>,
pub quantity: Option<Vec<QuantityRange>>,
}Expand description
The typed value slot of a project-level (user-submitted) search parameter,
matching the fixed dynamic_parameters.value.* schema declared in the
Elasticsearch mapping. Exactly one field is set, matching the parameter’s
SearchParamType. Unlike system-level parameters, a user-submitted
parameter’s URL is arbitrary and can’t safely become an Elasticsearch
field name (mapping explosion, plus Elasticsearch would silently collapse
any dot in that URL into a nested object path) - so it’s stored as the
plain string value of the url field instead. See DynamicParameterEntry.
Fields§
§string: Option<Vec<String>>§number: Option<Vec<f64>>§uri: Option<Vec<String>>§token: Option<Vec<TokenIndex>>§date: Option<Vec<DateRange>>§reference: Option<Vec<ReferenceIndex>>§quantity: Option<Vec<QuantityRange>>Trait Implementations§
Source§impl Debug for DynamicParameterValue
impl Debug for DynamicParameterValue
Source§impl Default for DynamicParameterValue
impl Default for DynamicParameterValue
Source§fn default() -> DynamicParameterValue
fn default() -> DynamicParameterValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DynamicParameterValue
impl<'de> Deserialize<'de> for DynamicParameterValue
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
Auto Trait Implementations§
impl Freeze for DynamicParameterValue
impl RefUnwindSafe for DynamicParameterValue
impl Send for DynamicParameterValue
impl Sync for DynamicParameterValue
impl Unpin for DynamicParameterValue
impl UnsafeUnpin for DynamicParameterValue
impl UnwindSafe for DynamicParameterValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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