#[non_exhaustive]pub struct CreateUserCredsRequest {
pub parent: String,
pub user_creds: Option<UserCreds>,
pub user_creds_id: String,
/* private fields */
}Expand description
The request for FirestoreAdmin.CreateUserCreds.
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.parent: StringRequired. A parent name of the form
projects/{project_id}/databases/{database_id}
user_creds: Option<UserCreds>Required. The user creds to create.
user_creds_id: StringRequired. The ID to use for the user creds, which will become the final component of the user creds’s resource name.
This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
Implementations§
Source§impl CreateUserCredsRequest
impl CreateUserCredsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_user_creds<T>(self, v: T) -> Self
pub fn set_user_creds<T>(self, v: T) -> Self
Sets the value of user_creds.
§Example
ⓘ
use google_cloud_firestore_admin_v1::model::UserCreds;
let x = CreateUserCredsRequest::new().set_user_creds(UserCreds::default()/* use setters */);Sourcepub fn set_or_clear_user_creds<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_user_creds<T>(self, v: Option<T>) -> Self
Sets or clears the value of user_creds.
§Example
ⓘ
use google_cloud_firestore_admin_v1::model::UserCreds;
let x = CreateUserCredsRequest::new().set_or_clear_user_creds(Some(UserCreds::default()/* use setters */));
let x = CreateUserCredsRequest::new().set_or_clear_user_creds(None::<UserCreds>);Sourcepub fn set_user_creds_id<T: Into<String>>(self, v: T) -> Self
pub fn set_user_creds_id<T: Into<String>>(self, v: T) -> Self
Sets the value of user_creds_id.
§Example
ⓘ
let x = CreateUserCredsRequest::new().set_user_creds_id("example");Trait Implementations§
Source§impl Clone for CreateUserCredsRequest
impl Clone for CreateUserCredsRequest
Source§fn clone(&self) -> CreateUserCredsRequest
fn clone(&self) -> CreateUserCredsRequest
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 CreateUserCredsRequest
impl Debug for CreateUserCredsRequest
Source§impl Default for CreateUserCredsRequest
impl Default for CreateUserCredsRequest
Source§fn default() -> CreateUserCredsRequest
fn default() -> CreateUserCredsRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateUserCredsRequest
impl Message for CreateUserCredsRequest
Source§impl PartialEq for CreateUserCredsRequest
impl PartialEq for CreateUserCredsRequest
impl StructuralPartialEq for CreateUserCredsRequest
Auto Trait Implementations§
impl Freeze for CreateUserCredsRequest
impl RefUnwindSafe for CreateUserCredsRequest
impl Send for CreateUserCredsRequest
impl Sync for CreateUserCredsRequest
impl Unpin for CreateUserCredsRequest
impl UnwindSafe for CreateUserCredsRequest
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