#[non_exhaustive]pub struct ListNoteOccurrencesResponse {
pub occurrences: Vec<Occurrence>,
pub next_page_token: String,
/* private fields */
}Expand description
Response for listing occurrences for a 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.occurrences: Vec<Occurrence>The occurrences attached to the specified note.
next_page_token: StringToken to provide to skip to a particular spot in the list.
Implementations§
Source§impl ListNoteOccurrencesResponse
impl ListNoteOccurrencesResponse
pub fn new() -> Self
Sourcepub fn set_occurrences<T, V>(self, v: T) -> Self
pub fn set_occurrences<T, V>(self, v: T) -> Self
Sets the value of occurrences.
§Example
ⓘ
use google_cloud_grafeas_v1::model::Occurrence;
let x = ListNoteOccurrencesResponse::new()
.set_occurrences([
Occurrence::default()/* use setters */,
Occurrence::default()/* use (different) setters */,
]);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 = ListNoteOccurrencesResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListNoteOccurrencesResponse
impl Clone for ListNoteOccurrencesResponse
Source§fn clone(&self) -> ListNoteOccurrencesResponse
fn clone(&self) -> ListNoteOccurrencesResponse
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 ListNoteOccurrencesResponse
impl Debug for ListNoteOccurrencesResponse
Source§impl Default for ListNoteOccurrencesResponse
impl Default for ListNoteOccurrencesResponse
Source§fn default() -> ListNoteOccurrencesResponse
fn default() -> ListNoteOccurrencesResponse
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ListNoteOccurrencesResponse
Auto Trait Implementations§
impl Freeze for ListNoteOccurrencesResponse
impl RefUnwindSafe for ListNoteOccurrencesResponse
impl Send for ListNoteOccurrencesResponse
impl Sync for ListNoteOccurrencesResponse
impl Unpin for ListNoteOccurrencesResponse
impl UnsafeUnpin for ListNoteOccurrencesResponse
impl UnwindSafe for ListNoteOccurrencesResponse
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