Struct fiberplane_models::notebooks::Notebook
source · #[non_exhaustive]pub struct Notebook {Show 14 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,
}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: FrontMatterImplementations§
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(...), .read_only(...)(optional), .created_by(...), .selected_data_sources(...)(optional), .labels(...)(optional), .front_matter(...)(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