#[non_exhaustive]pub struct CreateNoteRequest {
pub parent: String,
pub note_id: String,
pub note: Option<Note>,
/* private fields */
}Expand description
Request to create a new note.
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.parent: StringThe name of the project in the form of projects/[PROJECT_ID], under which
the note is to be created.
note_id: StringThe ID to use for this note.
note: Option<Note>The note to create.
Implementations§
Source§impl CreateNoteRequest
impl CreateNoteRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_note_id<T: Into<String>>(self, v: T) -> Self
pub fn set_note_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_note<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_note<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateNoteRequest
impl Clone for CreateNoteRequest
Source§fn clone(&self) -> CreateNoteRequest
fn clone(&self) -> CreateNoteRequest
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 CreateNoteRequest
impl Debug for CreateNoteRequest
Source§impl Default for CreateNoteRequest
impl Default for CreateNoteRequest
Source§fn default() -> CreateNoteRequest
fn default() -> CreateNoteRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateNoteRequest
impl Message for CreateNoteRequest
Source§impl PartialEq for CreateNoteRequest
impl PartialEq for CreateNoteRequest
impl StructuralPartialEq for CreateNoteRequest
Auto Trait Implementations§
impl Freeze for CreateNoteRequest
impl RefUnwindSafe for CreateNoteRequest
impl Send for CreateNoteRequest
impl Sync for CreateNoteRequest
impl Unpin for CreateNoteRequest
impl UnsafeUnpin for CreateNoteRequest
impl UnwindSafe for CreateNoteRequest
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