Enum fiberplane_models::notebooks::operations::Operation
source · #[non_exhaustive]pub enum Operation {
Show 20 variants
MoveCells(MoveCellsOperation),
ReplaceCells(ReplaceCellsOperation),
ReplaceText(ReplaceTextOperation),
UpdateNotebookTimeRange(UpdateNotebookTimeRangeOperation),
UpdateNotebookTitle(UpdateNotebookTitleOperation),
SetSelectedDataSource(SetSelectedDataSourceOperation),
AddLabel(AddLabelOperation),
ReplaceLabel(ReplaceLabelOperation),
RemoveLabel(RemoveLabelOperation),
ClearFrontMatter(ClearFrontMatterOperation),
InsertFrontMatterSchema(InsertFrontMatterSchemaOperation),
UpdateFrontMatterSchema(UpdateFrontMatterSchemaOperation),
MoveFrontMatterSchema(MoveFrontMatterSchemaOperation),
RemoveFrontMatterSchema(RemoveFrontMatterSchemaOperation),
UpdateFrontMatter(UpdateFrontMatterOperation),
InsertTableColumn(InsertTableColumnOperation),
RemoveTableColumn(RemoveTableColumnOperation),
UpdateTableColumnDefinition(UpdateTableColumnDefinitionOperation),
InsertTableRow(InsertTableRowOperation),
RemoveTableRow(RemoveTableRowOperation),
}Expand description
An operation is the representation for a mutation to be performed to a notebook.
Operations are intended to be atomic (they should either be performed in their entirety or not at all), while also capturing the intent of the user.
For more information, please see RFC 8: https://www.notion.so/fiberplane/RFC-8-Notebook-Operations-f9d18676d0d9437d81de30faa219deb4
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MoveCells(MoveCellsOperation)
ReplaceCells(ReplaceCellsOperation)
ReplaceText(ReplaceTextOperation)
UpdateNotebookTimeRange(UpdateNotebookTimeRangeOperation)
UpdateNotebookTitle(UpdateNotebookTitleOperation)
Deprecated: Please use ReplaceText with cell_id == TITLE_CELL_ID instead.
SetSelectedDataSource(SetSelectedDataSourceOperation)
AddLabel(AddLabelOperation)
ReplaceLabel(ReplaceLabelOperation)
RemoveLabel(RemoveLabelOperation)
ClearFrontMatter(ClearFrontMatterOperation)
InsertFrontMatterSchema(InsertFrontMatterSchemaOperation)
UpdateFrontMatterSchema(UpdateFrontMatterSchemaOperation)
MoveFrontMatterSchema(MoveFrontMatterSchemaOperation)
RemoveFrontMatterSchema(RemoveFrontMatterSchemaOperation)
UpdateFrontMatter(UpdateFrontMatterOperation)
Deprecated: Full front matter updates should be avoided, granular update operations are better for conflict handling.
InsertTableColumn(InsertTableColumnOperation)
RemoveTableColumn(RemoveTableColumnOperation)
UpdateTableColumnDefinition(UpdateTableColumnDefinitionOperation)
InsertTableRow(InsertTableRowOperation)
RemoveTableRow(RemoveTableRowOperation)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 Operation
impl PartialEq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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