pub struct Note {
pub attachments: Option<Vec<Attachment>>,
pub body: Option<Section>,
pub create_time: Option<DateTime<Utc>>,
pub name: Option<String>,
pub permissions: Option<Vec<Permission>>,
pub title: Option<String>,
pub trash_time: Option<DateTime<Utc>>,
pub trashed: Option<bool>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
A single note.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- permissions batch create notes (none)
- permissions batch delete notes (none)
- create notes (request|response)
- delete notes (none)
- get notes (response)
- list notes (none)
Fields§
§attachments: Option<Vec<Attachment>>
Output only. The attachments attached to this note.
body: Option<Section>
The body of the note.
create_time: Option<DateTime<Utc>>
Output only. When this note was created.
name: Option<String>
Output only. The resource name of this note. See general note on identifiers in KeepService.
permissions: Option<Vec<Permission>>
Output only. The list of permissions set on the note. Contains at least one entry for the note owner.
title: Option<String>
The title of the note. Length must be less than 1,000 characters.
trash_time: Option<DateTime<Utc>>
Output only. When this note was trashed. If trashed
, the note is eventually deleted. If the note is not trashed, this field is not set (and the trashed field is false
).
trashed: Option<bool>
Output only. true
if this note has been trashed. If trashed, the note is eventually deleted.
update_time: Option<DateTime<Utc>>
Output only. When this note was last modified.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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>,
impl RequestValue for Note
impl Resource for Note
impl ResponseResult for Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more