#[non_exhaustive]pub enum DocumentDescriptor {
Id(String),
Name(String),
Uri(String),
}Available on crate features
recommendation-service or user-event-service only.Expand description
A required descriptor of the associated Document.
-
If id is specified, then the default values for
{location},{collection_id},{data_store_id}, and{branch_id}are used when annotating with the stored Document. -
If name is specified, then the provided values (default values allowed) for
{location},{collection_id},{data_store_id}, and{branch_id}are used when annotating with the stored Document.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Id(String)
The Document resource ID.
Name(String)
The Document resource full
name, of the form:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
Uri(String)
The Document URI - only allowed for website data stores.
Trait Implementations§
Source§impl Clone for DocumentDescriptor
impl Clone for DocumentDescriptor
Source§fn clone(&self) -> DocumentDescriptor
fn clone(&self) -> DocumentDescriptor
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 DocumentDescriptor
impl Debug for DocumentDescriptor
Source§impl PartialEq for DocumentDescriptor
impl PartialEq for DocumentDescriptor
impl StructuralPartialEq for DocumentDescriptor
Auto Trait Implementations§
impl Freeze for DocumentDescriptor
impl RefUnwindSafe for DocumentDescriptor
impl Send for DocumentDescriptor
impl Sync for DocumentDescriptor
impl Unpin for DocumentDescriptor
impl UnwindSafe for DocumentDescriptor
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