#[non_exhaustive]pub struct NotebookResponseDataAttributes {
pub author: Option<NotebookAuthor>,
pub cells: Vec<NotebookCellResponse>,
pub created: Option<DateTime<Utc>>,
pub metadata: Option<NotebookMetadata>,
pub modified: Option<DateTime<Utc>>,
pub name: String,
pub status: Option<NotebookStatus>,
pub time: NotebookGlobalTime,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The attributes of a notebook.
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.Attributes of user object returned by the API.
cells: Vec<NotebookCellResponse>
List of cells to display in the notebook.
created: Option<DateTime<Utc>>
UTC time stamp for when the notebook was created.
metadata: Option<NotebookMetadata>
Metadata associated with the notebook.
modified: Option<DateTime<Utc>>
UTC time stamp for when the notebook was last modified.
name: String
The name of the notebook.
status: Option<NotebookStatus>
Publication status of the notebook. For now, always “published”.
time: NotebookGlobalTime
Notebook global timeframe.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl NotebookResponseDataAttributes
impl NotebookResponseDataAttributes
pub fn new( cells: Vec<NotebookCellResponse>, name: String, time: NotebookGlobalTime, ) -> NotebookResponseDataAttributes
pub fn created(self, value: DateTime<Utc>) -> Self
pub fn metadata(self, value: NotebookMetadata) -> Self
pub fn modified(self, value: DateTime<Utc>) -> Self
pub fn status(self, value: NotebookStatus) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for NotebookResponseDataAttributes
impl Clone for NotebookResponseDataAttributes
Source§fn clone(&self) -> NotebookResponseDataAttributes
fn clone(&self) -> NotebookResponseDataAttributes
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<'de> Deserialize<'de> for NotebookResponseDataAttributes
impl<'de> Deserialize<'de> for NotebookResponseDataAttributes
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 NotebookResponseDataAttributes
impl PartialEq for NotebookResponseDataAttributes
Source§fn eq(&self, other: &NotebookResponseDataAttributes) -> bool
fn eq(&self, other: &NotebookResponseDataAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for NotebookResponseDataAttributes
Auto Trait Implementations§
impl Freeze for NotebookResponseDataAttributes
impl RefUnwindSafe for NotebookResponseDataAttributes
impl Send for NotebookResponseDataAttributes
impl Sync for NotebookResponseDataAttributes
impl Unpin for NotebookResponseDataAttributes
impl UnwindSafe for NotebookResponseDataAttributes
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