#[non_exhaustive]pub struct ListRagFilesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Request message for VertexRagDataService.ListRagFiles.
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: StringRequired. The resource name of the RagCorpus from which to list the
RagFiles. Format:
projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
page_size: i32Optional. The standard list page size.
page_token: StringOptional. The standard list page token. Typically obtained via ListRagFilesResponse.next_page_token of the previous VertexRagDataService.ListRagFiles call.
Implementations§
Source§impl ListRagFilesRequest
impl ListRagFilesRequest
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_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
ⓘ
let x = ListRagFilesRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListRagFilesRequest
impl Clone for ListRagFilesRequest
Source§fn clone(&self) -> ListRagFilesRequest
fn clone(&self) -> ListRagFilesRequest
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 ListRagFilesRequest
impl Debug for ListRagFilesRequest
Source§impl Default for ListRagFilesRequest
impl Default for ListRagFilesRequest
Source§fn default() -> ListRagFilesRequest
fn default() -> ListRagFilesRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListRagFilesRequest
impl Message for ListRagFilesRequest
Source§impl PartialEq for ListRagFilesRequest
impl PartialEq for ListRagFilesRequest
impl StructuralPartialEq for ListRagFilesRequest
Auto Trait Implementations§
impl Freeze for ListRagFilesRequest
impl RefUnwindSafe for ListRagFilesRequest
impl Send for ListRagFilesRequest
impl Sync for ListRagFilesRequest
impl Unpin for ListRagFilesRequest
impl UnwindSafe for ListRagFilesRequest
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