#[non_exhaustive]pub struct SearchFilesResponse {
pub search_results: Vec<SearchResult>,
pub next_page_token: String,
/* private fields */
}Expand description
Client-facing representation of a file search response.
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.search_results: Vec<SearchResult>List of matched results.
next_page_token: StringOptional. A token, which can be sent as page_token to retrieve the next
page. If this field is omitted, there are no subsequent pages.
Implementations§
Source§impl SearchFilesResponse
impl SearchFilesResponse
pub fn new() -> Self
Sourcepub fn set_search_results<T, V>(self, v: T) -> Self
pub fn set_search_results<T, V>(self, v: T) -> Self
Sets the value of search_results.
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.
Trait Implementations§
Source§impl Clone for SearchFilesResponse
impl Clone for SearchFilesResponse
Source§fn clone(&self) -> SearchFilesResponse
fn clone(&self) -> SearchFilesResponse
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 SearchFilesResponse
impl Debug for SearchFilesResponse
Source§impl Default for SearchFilesResponse
impl Default for SearchFilesResponse
Source§fn default() -> SearchFilesResponse
fn default() -> SearchFilesResponse
Returns the “default value” for a type. Read more
Source§impl Message for SearchFilesResponse
impl Message for SearchFilesResponse
Source§impl PartialEq for SearchFilesResponse
impl PartialEq for SearchFilesResponse
impl StructuralPartialEq for SearchFilesResponse
Auto Trait Implementations§
impl Freeze for SearchFilesResponse
impl RefUnwindSafe for SearchFilesResponse
impl Send for SearchFilesResponse
impl Sync for SearchFilesResponse
impl Unpin for SearchFilesResponse
impl UnwindSafe for SearchFilesResponse
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