#[non_exhaustive]pub struct BatchGetDocumentsRequest {
pub names: Vec<String>,
pub view: DocumentView,
/* private fields */
}Expand description
Request message for DeveloperKnowledge.BatchGetDocuments.
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.names: Vec<String>Required. Specifies the names of the documents to retrieve. A maximum of 20
documents can be retrieved in a batch. The documents are returned in the
same order as the names in the request.
Format: documents/{uri_without_scheme}
Example: documents/docs.cloud.google.com/storage/docs/creating-buckets
Each name must not exceed 500 characters; values longer than 500 characters
will result in an INVALID_ARGUMENT error.
view: DocumentViewOptional. Specifies the
DocumentView of the
document. If unspecified,
DeveloperKnowledge.BatchGetDocuments
defaults to DOCUMENT_VIEW_CONTENT.
Implementations§
Source§impl BatchGetDocumentsRequest
impl BatchGetDocumentsRequest
Sourcepub fn set_view<T: Into<DocumentView>>(self, v: T) -> Self
pub fn set_view<T: Into<DocumentView>>(self, v: T) -> Self
Sets the value of view.
§Example
ⓘ
use google_developers_knowledge_v1::model::DocumentView;
let x0 = BatchGetDocumentsRequest::new().set_view(DocumentView::Basic);
let x1 = BatchGetDocumentsRequest::new().set_view(DocumentView::Full);
let x2 = BatchGetDocumentsRequest::new().set_view(DocumentView::Content);Trait Implementations§
Source§impl Clone for BatchGetDocumentsRequest
impl Clone for BatchGetDocumentsRequest
Source§fn clone(&self) -> BatchGetDocumentsRequest
fn clone(&self) -> BatchGetDocumentsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BatchGetDocumentsRequest
impl Debug for BatchGetDocumentsRequest
Source§impl Default for BatchGetDocumentsRequest
impl Default for BatchGetDocumentsRequest
Source§fn default() -> BatchGetDocumentsRequest
fn default() -> BatchGetDocumentsRequest
Returns the “default value” for a type. Read more
Source§impl Message for BatchGetDocumentsRequest
impl Message for BatchGetDocumentsRequest
Source§impl PartialEq for BatchGetDocumentsRequest
impl PartialEq for BatchGetDocumentsRequest
impl StructuralPartialEq for BatchGetDocumentsRequest
Auto Trait Implementations§
impl Freeze for BatchGetDocumentsRequest
impl RefUnwindSafe for BatchGetDocumentsRequest
impl Send for BatchGetDocumentsRequest
impl Sync for BatchGetDocumentsRequest
impl Unpin for BatchGetDocumentsRequest
impl UnsafeUnpin for BatchGetDocumentsRequest
impl UnwindSafe for BatchGetDocumentsRequest
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