#[non_exhaustive]pub struct ListNotesResponse {
pub notes: Vec<Note>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Response for listing notes.
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.notes: Vec<Note>The notes requested.
next_page_token: StringThe next pagination token in the list response. It should be used as
page_token for the following request. An empty value means no more
results.
unreachable: Vec<String>Unreachable regions. Populated for requests from the global region
when return_partial_success is set.
Format: projects/[PROJECT_ID]/locations/[LOCATION]
Implementations§
Source§impl ListNotesResponse
impl ListNotesResponse
pub fn new() -> Self
Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListNotesResponse::new().set_next_page_token("example");Sourcepub fn set_unreachable<T, V>(self, v: T) -> Self
pub fn set_unreachable<T, V>(self, v: T) -> Self
Sets the value of unreachable.
§Example
ⓘ
let x = ListNotesResponse::new().set_unreachable(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ListNotesResponse
impl Clone for ListNotesResponse
Source§fn clone(&self) -> ListNotesResponse
fn clone(&self) -> ListNotesResponse
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 ListNotesResponse
impl Debug for ListNotesResponse
Source§impl Default for ListNotesResponse
impl Default for ListNotesResponse
Source§fn default() -> ListNotesResponse
fn default() -> ListNotesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListNotesResponse
impl Message for ListNotesResponse
Source§impl PartialEq for ListNotesResponse
impl PartialEq for ListNotesResponse
impl StructuralPartialEq for ListNotesResponse
Auto Trait Implementations§
impl Freeze for ListNotesResponse
impl RefUnwindSafe for ListNotesResponse
impl Send for ListNotesResponse
impl Sync for ListNotesResponse
impl Unpin for ListNotesResponse
impl UnsafeUnpin for ListNotesResponse
impl UnwindSafe for ListNotesResponse
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