#[non_exhaustive]pub struct UrlContextMetadata {
pub url_metadata: Vec<UrlMetadata>,
/* private fields */
}Available on crate feature
prediction-service only.Expand description
Metadata related to url context retrieval tool.
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.url_metadata: Vec<UrlMetadata>Output only. List of url context.
Implementations§
Source§impl UrlContextMetadata
impl UrlContextMetadata
pub fn new() -> Self
Sourcepub fn set_url_metadata<T, V>(self, v: T) -> Self
pub fn set_url_metadata<T, V>(self, v: T) -> Self
Sets the value of url_metadata.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::UrlMetadata;
let x = UrlContextMetadata::new()
.set_url_metadata([
UrlMetadata::default()/* use setters */,
UrlMetadata::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for UrlContextMetadata
impl Clone for UrlContextMetadata
Source§fn clone(&self) -> UrlContextMetadata
fn clone(&self) -> UrlContextMetadata
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 UrlContextMetadata
impl Debug for UrlContextMetadata
Source§impl Default for UrlContextMetadata
impl Default for UrlContextMetadata
Source§fn default() -> UrlContextMetadata
fn default() -> UrlContextMetadata
Returns the “default value” for a type. Read more
Source§impl Message for UrlContextMetadata
impl Message for UrlContextMetadata
Source§impl PartialEq for UrlContextMetadata
impl PartialEq for UrlContextMetadata
impl StructuralPartialEq for UrlContextMetadata
Auto Trait Implementations§
impl Freeze for UrlContextMetadata
impl RefUnwindSafe for UrlContextMetadata
impl Send for UrlContextMetadata
impl Sync for UrlContextMetadata
impl Unpin for UrlContextMetadata
impl UnwindSafe for UrlContextMetadata
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