#[non_exhaustive]pub struct FilterSchema { /* private fields */ }Implementations§
Source§impl FilterSchema
impl FilterSchema
pub fn get_field_type(&self, name: &str) -> Option<&FieldType>
pub fn fields(&self) -> &HashMap<String, FieldType>
Sourcepub fn field_id(&self, name: &str) -> Option<usize>
pub fn field_id(&self, name: &str) -> Option<usize>
Get the field ID for a given field name, if it exists.
Sourcepub fn field_name(&self, id: usize) -> Option<&str>
pub fn field_name(&self, id: usize) -> Option<&str>
Get the field name for a given field ID, if it exists.
Sourcepub fn num_fields(&self) -> usize
pub fn num_fields(&self) -> usize
Get the total number of fields.
Trait Implementations§
Source§impl Clone for FilterSchema
impl Clone for FilterSchema
Source§fn clone(&self) -> FilterSchema
fn clone(&self) -> FilterSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 FilterSchema
impl Debug for FilterSchema
Source§impl<'de> Deserialize<'de> for FilterSchema
impl<'de> Deserialize<'de> for FilterSchema
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 FilterSchema
impl RefUnwindSafe for FilterSchema
impl Send for FilterSchema
impl Sync for FilterSchema
impl Unpin for FilterSchema
impl UnwindSafe for FilterSchema
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