pub struct DatabaseResponse {Show 15 fields
pub id: String,
pub created_time: String,
pub last_edited_time: String,
pub created_by: User,
pub last_edited_by: User,
pub cover: Option<File>,
pub icon: Option<Icon>,
pub url: String,
pub public_url: Option<String>,
pub archived: bool,
pub in_trash: bool,
pub is_inline: bool,
pub title: Vec<RichText>,
pub description: Vec<RichText>,
pub properties: HashMap<String, DatabaseProperty>,
}
Fields§
§id: String
§created_time: String
§last_edited_time: String
§created_by: User
§last_edited_by: User
§cover: Option<File>
§icon: Option<Icon>
§url: String
§public_url: Option<String>
§archived: bool
§in_trash: bool
§is_inline: bool
§title: Vec<RichText>
§description: Vec<RichText>
§properties: HashMap<String, DatabaseProperty>
Implementations§
Source§impl DatabaseResponse
impl DatabaseResponse
Sourcepub fn created_time<T>(self, created_time: T) -> Self
pub fn created_time<T>(self, created_time: T) -> Self
Set the value of the created_time
field.
Sourcepub fn last_edited_time<T>(self, last_edited_time: T) -> Self
pub fn last_edited_time<T>(self, last_edited_time: T) -> Self
Set the value of the last_edited_time
field.
Sourcepub fn created_by(self, created_by: User) -> Self
pub fn created_by(self, created_by: User) -> Self
Set the value of the created_by
field.
Sourcepub fn last_edited_by(self, last_edited_by: User) -> Self
pub fn last_edited_by(self, last_edited_by: User) -> Self
Set the value of the last_edited_by
field.
Sourcepub fn public_url<T>(self, public_url: T) -> Self
pub fn public_url<T>(self, public_url: T) -> Self
Set the value of the public_url
field.
Sourcepub fn description(self, description: Vec<RichText>) -> Self
pub fn description(self, description: Vec<RichText>) -> Self
Set the value of the description
field.
Sourcepub fn properties(self, properties: HashMap<String, DatabaseProperty>) -> Self
pub fn properties(self, properties: HashMap<String, DatabaseProperty>) -> Self
Set the value of the properties
field.
Trait Implementations§
Source§impl Clone for DatabaseResponse
impl Clone for DatabaseResponse
Source§fn clone(&self) -> DatabaseResponse
fn clone(&self) -> DatabaseResponse
Returns a copy 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 DatabaseResponse
impl Debug for DatabaseResponse
Source§impl<'de> Deserialize<'de> for DatabaseResponse
impl<'de> Deserialize<'de> for DatabaseResponse
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
Auto Trait Implementations§
impl Freeze for DatabaseResponse
impl RefUnwindSafe for DatabaseResponse
impl Send for DatabaseResponse
impl Sync for DatabaseResponse
impl Unpin for DatabaseResponse
impl UnwindSafe for DatabaseResponse
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