#[non_exhaustive]pub struct EntityIdSelector {
pub entity_id_field: String,
pub entity_ids_source: Option<EntityIdsSource>,
/* private fields */
}Available on crate feature
featurestore-service only.Expand description
Selector for entityId. Getting ids from the given source.
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.entity_id_field: StringSource column that holds entity IDs. If not provided, entity IDs are extracted from the column named entity_id.
entity_ids_source: Option<EntityIdsSource>Details about the source data, including the location of the storage and the format.
Implementations§
Source§impl EntityIdSelector
impl EntityIdSelector
pub fn new() -> Self
Sourcepub fn set_entity_id_field<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_id_field<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_id_field.
§Example
ⓘ
let x = EntityIdSelector::new().set_entity_id_field("example");Sourcepub fn set_entity_ids_source<T: Into<Option<EntityIdsSource>>>(
self,
v: T,
) -> Self
pub fn set_entity_ids_source<T: Into<Option<EntityIdsSource>>>( self, v: T, ) -> Self
Sets the value of entity_ids_source.
Note that all the setters affecting entity_ids_source are mutually
exclusive.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::CsvSource;
let x = EntityIdSelector::new().set_entity_ids_source(Some(
google_cloud_aiplatform_v1::model::entity_id_selector::EntityIdsSource::CsvSource(CsvSource::default().into())));Sourcepub fn csv_source(&self) -> Option<&Box<CsvSource>>
pub fn csv_source(&self) -> Option<&Box<CsvSource>>
The value of entity_ids_source
if it holds a CsvSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_csv_source<T: Into<Box<CsvSource>>>(self, v: T) -> Self
pub fn set_csv_source<T: Into<Box<CsvSource>>>(self, v: T) -> Self
Sets the value of entity_ids_source
to hold a CsvSource.
Note that all the setters affecting entity_ids_source are
mutually exclusive.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::CsvSource;
let x = EntityIdSelector::new().set_csv_source(CsvSource::default()/* use setters */);
assert!(x.csv_source().is_some());Trait Implementations§
Source§impl Clone for EntityIdSelector
impl Clone for EntityIdSelector
Source§fn clone(&self) -> EntityIdSelector
fn clone(&self) -> EntityIdSelector
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 EntityIdSelector
impl Debug for EntityIdSelector
Source§impl Default for EntityIdSelector
impl Default for EntityIdSelector
Source§fn default() -> EntityIdSelector
fn default() -> EntityIdSelector
Returns the “default value” for a type. Read more
Source§impl Message for EntityIdSelector
impl Message for EntityIdSelector
Source§impl PartialEq for EntityIdSelector
impl PartialEq for EntityIdSelector
impl StructuralPartialEq for EntityIdSelector
Auto Trait Implementations§
impl Freeze for EntityIdSelector
impl RefUnwindSafe for EntityIdSelector
impl Send for EntityIdSelector
impl Sync for EntityIdSelector
impl Unpin for EntityIdSelector
impl UnwindSafe for EntityIdSelector
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