Struct gapi_grpc::google::cloud::sql::v1beta4::User[][src]

pub struct User {
    pub kind: String,
    pub password: String,
    pub etag: String,
    pub name: String,
    pub host: String,
    pub instance: String,
    pub project: String,
    pub type: i32,
    pub user_details: Option<UserDetails>,
}
[]

A Cloud SQL user resource.

Fields

kind: String
[]

This is always sql#user.

password: String
[]

The password for the user.

etag: String
[]

This field is deprecated and will be removed from a future version of the API.

name: String
[]

The name of the user in the Cloud SQL instance. Can be omitted for update since it is already specified in the URL.

host: String
[]

The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion.

instance: String
[]

The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update since it is already specified on the URL.

project: String
[]

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update since it is already specified on the URL.

type: i32
[]

The user type. It determines the method to authenticate the user during login. The default is the database’s built-in user type.

user_details: Option<UserDetails>
[]

User details for specific database type

Implementations

impl User[src][]

pub fn type(&self) -> SqlUserType[src][]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: SqlUserType)[src][]

Sets type to the provided enum value.

Trait Implementations

impl Clone for User[src][+]

impl Debug for User[src][+]

impl Default for User[src][+]

impl Message for User[src][+]

impl PartialEq<User> for User[src][+]

impl StructuralPartialEq for User[src]

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T> Instrument for T[src][+]

impl<T> Instrument for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> IntoRequest<T> for T[src][+]

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src][+]

impl<T> WithSubscriber for T[src][+]