pub enum FieldType {
}Expand description
A Parse field type.
Pointer and Relation carry their target class because the wire form does
(Pointer<_User>), and because the Mongo transform needs the target to build the
"<Class>$<id>" storage form.
Variants§
String
Number
Boolean
Date
Object
Array
GeoPoint
File
Bytes
Polygon
Pointer
Relation
Acl
Not a user-settable field type. ACL is a real column in the Parse schema, and
mongoSchemaFieldsToParseSchemaFields injects it unconditionally.
Implementations§
Source§impl FieldType
impl FieldType
Sourcepub fn to_wire_string(&self) -> String
pub fn to_wire_string(&self) -> String
The wire rendering, which is part of the error-message contract.
typeToString produces Pointer<_User> for parametric types
(SchemaController.js:697-705), and that exact string appears inside
schema mismatch for <Class>.<field>; expected <expected> but got <got>. Getting the
rendering wrong changes an error a client may match on.
pub fn is_pointer(&self) -> bool
Trait Implementations§
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.