#[non_exhaustive]pub struct NotebooksResponseDataAttributes {
pub author: Option<NotebookAuthor>,
pub cells: Option<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: Option<NotebookGlobalTime>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The attributes of a notebook in get all response.
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: Option<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: Option<NotebookGlobalTime>
Notebook global timeframe.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl NotebooksResponseDataAttributes
impl NotebooksResponseDataAttributes
pub fn new(name: String) -> NotebooksResponseDataAttributes
pub fn cells(self, value: Vec<NotebookCellResponse>) -> Self
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 time(self, value: NotebookGlobalTime) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for NotebooksResponseDataAttributes
impl Clone for NotebooksResponseDataAttributes
Source§fn clone(&self) -> NotebooksResponseDataAttributes
fn clone(&self) -> NotebooksResponseDataAttributes
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 NotebooksResponseDataAttributes
impl<'de> Deserialize<'de> for NotebooksResponseDataAttributes
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 NotebooksResponseDataAttributes
impl PartialEq for NotebooksResponseDataAttributes
Source§fn eq(&self, other: &NotebooksResponseDataAttributes) -> bool
fn eq(&self, other: &NotebooksResponseDataAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for NotebooksResponseDataAttributes
Auto Trait Implementations§
impl Freeze for NotebooksResponseDataAttributes
impl RefUnwindSafe for NotebooksResponseDataAttributes
impl Send for NotebooksResponseDataAttributes
impl Sync for NotebooksResponseDataAttributes
impl Unpin for NotebooksResponseDataAttributes
impl UnwindSafe for NotebooksResponseDataAttributes
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