pub enum SchemaAction {
CreateMeasurement(MeasurementSchema),
AddColumn {
measurement: String,
column: ColumnDef,
},
}Expand description
A schema action that can be applied to the registry.
Variants§
CreateMeasurement(MeasurementSchema)
Create a new measurement with the given schema.
AddColumn
Add a column to an existing measurement.
Trait Implementations§
Source§impl Clone for SchemaAction
impl Clone for SchemaAction
Source§fn clone(&self) -> SchemaAction
fn clone(&self) -> SchemaAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaAction
impl Debug for SchemaAction
Source§impl<'de> Deserialize<'de> for SchemaAction
impl<'de> Deserialize<'de> for SchemaAction
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
impl Eq for SchemaAction
Source§impl PartialEq for SchemaAction
impl PartialEq for SchemaAction
Source§impl Serialize for SchemaAction
impl Serialize for SchemaAction
impl StructuralPartialEq for SchemaAction
Auto Trait Implementations§
impl Freeze for SchemaAction
impl RefUnwindSafe for SchemaAction
impl Send for SchemaAction
impl Sync for SchemaAction
impl Unpin for SchemaAction
impl UnsafeUnpin for SchemaAction
impl UnwindSafe for SchemaAction
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