Struct fiberplane_models::notebooks::Notebook
source · #[non_exhaustive]pub struct Notebook {Show 15 fields
pub id: String,
pub workspace_id: Base64Uuid,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub time_range: TimeRange,
pub title: String,
pub cells: Vec<Cell>,
pub revision: u32,
pub visibility: NotebookVisibility,
pub read_only: bool,
pub created_by: CreatedBy,
pub selected_data_sources: SelectedDataSources,
pub labels: Vec<Label>,
pub front_matter: FrontMatter,
pub front_matter_schema: FrontMatterSchema,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§workspace_id: Base64Uuid§created_at: Timestamp§updated_at: Timestamp§time_range: TimeRange§title: String§cells: Vec<Cell>§revision: u32§visibility: NotebookVisibility§read_only: bool§created_by: CreatedBy§selected_data_sources: SelectedDataSources§labels: Vec<Label>§front_matter: FrontMatter§front_matter_schema: FrontMatterSchemaImplementations§
source§impl Notebook
impl Notebook
sourcepub fn builder(
) -> NotebookBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> NotebookBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Notebook.
On the builder, call .id(...)(optional), .workspace_id(...)(optional), .created_at(...), .updated_at(...), .time_range(...), .title(...)(optional), .cells(...)(optional), .revision(...), .visibility(...)(optional), .read_only(...)(optional), .created_by(...), .selected_data_sources(...)(optional), .labels(...)(optional), .front_matter(...)(optional), .front_matter_schema(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Notebook.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Notebook
impl<'de> Deserialize<'de> for Notebook
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 From<Notebook> for NewNotebook
impl From<Notebook> for NewNotebook
source§impl PartialEq for Notebook
impl PartialEq for Notebook
impl StructuralPartialEq for Notebook
Auto Trait Implementations§
impl Freeze for Notebook
impl RefUnwindSafe for Notebook
impl Send for Notebook
impl Sync for Notebook
impl Unpin for Notebook
impl UnwindSafe for Notebook
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