pub struct ParseSchema {
pub class_name: String,
pub fields: HashMap<String, FieldSchema>,
pub class_level_permissions: Option<ClassLevelPermissionsSchema>,
pub indexes: Option<HashMap<String, HashMap<String, IndexFieldType>>>,
}
Fields§
§class_name: String
§fields: HashMap<String, FieldSchema>
§class_level_permissions: Option<ClassLevelPermissionsSchema>
§indexes: Option<HashMap<String, HashMap<String, IndexFieldType>>>
Indexes are represented as a map where the key is the index name and the value is another map from field name to sort order (1 for asc, -1 for desc).
Trait Implementations§
Source§impl Clone for ParseSchema
impl Clone for ParseSchema
Source§fn clone(&self) -> ParseSchema
fn clone(&self) -> ParseSchema
Returns a copy 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 ParseSchema
impl Debug for ParseSchema
Source§impl<'de> Deserialize<'de> for ParseSchema
impl<'de> Deserialize<'de> for ParseSchema
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 ParseSchema
impl PartialEq for ParseSchema
Source§impl Serialize for ParseSchema
impl Serialize for ParseSchema
impl StructuralPartialEq for ParseSchema
Auto Trait Implementations§
impl Freeze for ParseSchema
impl RefUnwindSafe for ParseSchema
impl Send for ParseSchema
impl Sync for ParseSchema
impl Unpin for ParseSchema
impl UnwindSafe for ParseSchema
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