#[non_exhaustive]pub struct DeployedIndexAuthConfig {
pub auth_provider: Option<AuthProvider>,
/* private fields */
}Available on crate feature
index-endpoint-service only.Expand description
Used to set up the auth on the DeployedIndex’s private endpoint.
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.auth_provider: Option<AuthProvider>Defines the authentication provider that the DeployedIndex uses.
Implementations§
Source§impl DeployedIndexAuthConfig
impl DeployedIndexAuthConfig
pub fn new() -> Self
Sourcepub fn set_auth_provider<T>(self, v: T) -> Selfwhere
T: Into<AuthProvider>,
pub fn set_auth_provider<T>(self, v: T) -> Selfwhere
T: Into<AuthProvider>,
Sets the value of auth_provider.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::deployed_index_auth_config::AuthProvider;
let x = DeployedIndexAuthConfig::new().set_auth_provider(AuthProvider::default()/* use setters */);Sourcepub fn set_or_clear_auth_provider<T>(self, v: Option<T>) -> Selfwhere
T: Into<AuthProvider>,
pub fn set_or_clear_auth_provider<T>(self, v: Option<T>) -> Selfwhere
T: Into<AuthProvider>,
Sets or clears the value of auth_provider.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::deployed_index_auth_config::AuthProvider;
let x = DeployedIndexAuthConfig::new().set_or_clear_auth_provider(Some(AuthProvider::default()/* use setters */));
let x = DeployedIndexAuthConfig::new().set_or_clear_auth_provider(None::<AuthProvider>);Trait Implementations§
Source§impl Clone for DeployedIndexAuthConfig
impl Clone for DeployedIndexAuthConfig
Source§fn clone(&self) -> DeployedIndexAuthConfig
fn clone(&self) -> DeployedIndexAuthConfig
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 DeployedIndexAuthConfig
impl Debug for DeployedIndexAuthConfig
Source§impl Default for DeployedIndexAuthConfig
impl Default for DeployedIndexAuthConfig
Source§fn default() -> DeployedIndexAuthConfig
fn default() -> DeployedIndexAuthConfig
Returns the “default value” for a type. Read more
Source§impl Message for DeployedIndexAuthConfig
impl Message for DeployedIndexAuthConfig
Source§impl PartialEq for DeployedIndexAuthConfig
impl PartialEq for DeployedIndexAuthConfig
impl StructuralPartialEq for DeployedIndexAuthConfig
Auto Trait Implementations§
impl Freeze for DeployedIndexAuthConfig
impl RefUnwindSafe for DeployedIndexAuthConfig
impl Send for DeployedIndexAuthConfig
impl Sync for DeployedIndexAuthConfig
impl Unpin for DeployedIndexAuthConfig
impl UnwindSafe for DeployedIndexAuthConfig
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