#[non_exhaustive]pub struct ResourceId {
pub resource_type: ResourceType,
pub resource_id: String,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
The type and ID of the Google Drive resource.
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.resource_type: ResourceTypeRequired. The type of the Google Drive resource.
resource_id: StringRequired. The ID of the Google Drive resource.
Implementations§
Source§impl ResourceId
impl ResourceId
pub fn new() -> Self
Sourcepub fn set_resource_type<T: Into<ResourceType>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<ResourceType>>(self, v: T) -> Self
Sets the value of resource_type.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::google_drive_source::resource_id::ResourceType;
let x0 = ResourceId::new().set_resource_type(ResourceType::File);
let x1 = ResourceId::new().set_resource_type(ResourceType::Folder);Sourcepub fn set_resource_id<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_id<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ResourceId
impl Clone for ResourceId
Source§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
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 ResourceId
impl Debug for ResourceId
Source§impl Default for ResourceId
impl Default for ResourceId
Source§fn default() -> ResourceId
fn default() -> ResourceId
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResourceId
impl PartialEq for ResourceId
impl StructuralPartialEq for ResourceId
Auto Trait Implementations§
impl Freeze for ResourceId
impl RefUnwindSafe for ResourceId
impl Send for ResourceId
impl Sync for ResourceId
impl Unpin for ResourceId
impl UnwindSafe for ResourceId
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