pub enum SchemaDataType {
Show 13 variants
String,
Int32,
Int64,
Float,
Double,
Boolean,
Timestamp,
Binary,
Object,
Array,
Reference(String),
Union(Vec<SchemaDataType>),
Any,
}Expand description
Represents the data type of a schema field
Variants§
String
A string value
Int32
A 32-bit signed integer
Int64
A 64-bit signed integer
Float
A 32-bit floating point number
Double
A 64-bit floating point number
Boolean
A boolean value
Timestamp
A timestamp (ISO 8601 string)
Binary
A binary blob (base64 encoded string)
Object
A nested object with its own schema
Array
An array of values of the same type
Reference(String)
A reference to another type by name
Union(Vec<SchemaDataType>)
A union of multiple possible types
Any
Any valid JSON value
Trait Implementations§
Source§impl Clone for SchemaDataType
impl Clone for SchemaDataType
Source§fn clone(&self) -> SchemaDataType
fn clone(&self) -> SchemaDataType
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 SchemaDataType
impl Debug for SchemaDataType
Source§impl<'de> Deserialize<'de> for SchemaDataType
impl<'de> Deserialize<'de> for SchemaDataType
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 SchemaDataType
impl PartialEq for SchemaDataType
Source§impl RunarDecrypt for SchemaDataType
impl RunarDecrypt for SchemaDataType
Source§impl RunarEncrypt for SchemaDataType
impl RunarEncrypt for SchemaDataType
type Encrypted = SchemaDataType
fn encrypt_with_keystore( &self, _keystore: &Arc<KeyStore>, _resolver: &dyn LabelResolver, ) -> Result<Self::Encrypted>
Source§impl Serialize for SchemaDataType
impl Serialize for SchemaDataType
impl RunarEncryptable for SchemaDataType
impl StructuralPartialEq for SchemaDataType
Auto Trait Implementations§
impl Freeze for SchemaDataType
impl RefUnwindSafe for SchemaDataType
impl Send for SchemaDataType
impl Sync for SchemaDataType
impl Unpin for SchemaDataType
impl UnsafeUnpin for SchemaDataType
impl UnwindSafe for SchemaDataType
Blanket Implementations§
Source§impl<T> AsArcValue for T
impl<T> AsArcValue for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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