#[non_exhaustive]pub struct CustomAccount {
pub username: String,
pub password: String,
pub login_url: String,
/* private fields */
}Expand description
Describes authentication configuration that uses a custom account.
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.username: StringRequired. The user name of the custom account.
password: StringRequired. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
login_url: StringRequired. The login form URL of the website.
Implementations§
Source§impl CustomAccount
impl CustomAccount
pub fn new() -> Self
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CustomAccount
impl Clone for CustomAccount
Source§fn clone(&self) -> CustomAccount
fn clone(&self) -> CustomAccount
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 CustomAccount
impl Debug for CustomAccount
Source§impl Default for CustomAccount
impl Default for CustomAccount
Source§fn default() -> CustomAccount
fn default() -> CustomAccount
Returns the “default value” for a type. Read more
Source§impl Message for CustomAccount
impl Message for CustomAccount
Source§impl PartialEq for CustomAccount
impl PartialEq for CustomAccount
impl StructuralPartialEq for CustomAccount
Auto Trait Implementations§
impl Freeze for CustomAccount
impl RefUnwindSafe for CustomAccount
impl Send for CustomAccount
impl Sync for CustomAccount
impl Unpin for CustomAccount
impl UnwindSafe for CustomAccount
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