#[non_exhaustive]pub struct NotebookAuthor {
pub created_at: Option<DateTime<Utc>>,
pub disabled: Option<bool>,
pub email: Option<String>,
pub handle: Option<String>,
pub icon: Option<String>,
pub name: Option<Option<String>>,
pub status: Option<String>,
pub title: Option<Option<String>>,
pub verified: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes of user object returned by the API.
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.created_at: Option<DateTime<Utc>>
Creation time of the user.
disabled: Option<bool>
Whether the user is disabled.
email: Option<String>
Email of the user.
handle: Option<String>
Handle of the user.
icon: Option<String>
URL of the user’s icon.
name: Option<Option<String>>
Name of the user.
status: Option<String>
Status of the user.
title: Option<Option<String>>
Title of the user.
verified: Option<bool>
Whether the user is verified.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl NotebookAuthor
impl NotebookAuthor
pub fn new() -> NotebookAuthor
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn disabled(self, value: bool) -> Self
pub fn email(self, value: String) -> Self
pub fn handle(self, value: String) -> Self
pub fn icon(self, value: String) -> Self
pub fn name(self, value: Option<String>) -> Self
pub fn status(self, value: String) -> Self
pub fn title(self, value: Option<String>) -> Self
pub fn verified(self, value: bool) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for NotebookAuthor
impl Clone for NotebookAuthor
Source§fn clone(&self) -> NotebookAuthor
fn clone(&self) -> NotebookAuthor
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 Debug for NotebookAuthor
impl Debug for NotebookAuthor
Source§impl Default for NotebookAuthor
impl Default for NotebookAuthor
Source§impl<'de> Deserialize<'de> for NotebookAuthor
impl<'de> Deserialize<'de> for NotebookAuthor
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 NotebookAuthor
impl PartialEq for NotebookAuthor
Source§impl Serialize for NotebookAuthor
impl Serialize for NotebookAuthor
impl StructuralPartialEq for NotebookAuthor
Auto Trait Implementations§
impl Freeze for NotebookAuthor
impl RefUnwindSafe for NotebookAuthor
impl Send for NotebookAuthor
impl Sync for NotebookAuthor
impl Unpin for NotebookAuthor
impl UnwindSafe for NotebookAuthor
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