pub struct Field<'a> {
pub field_type: &'a str,
pub name: Cow<'a, str>,
pub facet: Option<bool>,
pub index: Option<bool>,
pub sort: Option<bool>,
pub optional: Option<bool>,
pub drop: Option<bool>,
}Fields§
§field_type: &'a str§name: Cow<'a, str>§facet: Option<bool>§index: Option<bool>§sort: Option<bool>§optional: Option<bool>§drop: Option<bool>Implementations§
Source§impl<'a> Field<'a>
impl<'a> Field<'a>
pub const STRING: &'static str = "string"
pub const STRING_ARRAY: &'static str = "string[]"
pub const INT32: &'static str = "int32"
pub const INT32_ARRAY: &'static str = "int32[]"
pub const INT64: &'static str = "int64"
pub const INT64_ARRAY: &'static str = "int64[]"
pub const FLOAT: &'static str = "float"
pub const FLOAT_ARRAY: &'static str = "float[]"
pub const BOOL: &'static str = "bool"
pub const BOOL_ARRAY: &'static str = "bool[]"
pub const OBJECT: &'static str = "object"
pub const OBJECT_ARRAY: &'static str = "object[]"
pub const GEOPOINT: &'static str = "geopoint"
pub const GEOPOINT_ARRAY: &'static str = "geopoint[]"
pub const STRINGAST: &'static str = "string*"
pub const AUTO: &'static str = "auto"
pub fn string(name: &'a str) -> Self
pub fn string_array(name: &'a str) -> Self
pub fn int32(name: &'a str) -> Self
pub fn int32_array(name: &'a str) -> Self
pub fn int64(name: &'a str) -> Self
pub fn int64_array(name: &'a str) -> Self
pub fn float(name: &'a str) -> Self
pub fn float_array(name: &'a str) -> Self
pub fn bool(name: &'a str) -> Self
pub fn bool_array(name: &'a str) -> Self
pub fn object(name: &'a str) -> Self
pub fn object_array(name: &'a str) -> Self
pub fn geopoint(name: &'a str) -> Self
pub fn geopoint_array(name: &'a str) -> Self
pub fn stringast(name: &'a str) -> Self
pub fn auto(name: &'a str) -> Self
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Field<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Field<'a>
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<'a> Ord for Field<'a>
impl<'a> Ord for Field<'a>
Source§impl<'a> PartialOrd for Field<'a>
impl<'a> PartialOrd for Field<'a>
impl<'a> Eq for Field<'a>
impl<'a> StructuralPartialEq for Field<'a>
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'a>
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