pub struct PackConnectionHttpBasicCredentials {
pub password: Option<String>,
pub type_: PackConnectionHttpBasicCredentialsType,
pub username: String,
}
Expand description
PackConnectionHttpBasicCredentials
JSON schema
{
"type": "object",
"required": [
"type",
"username"
],
"properties": {
"password": {
"type": "string",
"x-allow-empty": true
},
"type": {
"type": "string",
"enum": [
"httpBasic"
],
"x-tsType": "PackConnectionType.HttpBasic"
},
"username": {
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PackConnectionHttpBasicCredentials"
}
Fields§
§password: Option<String>
§type_: PackConnectionHttpBasicCredentialsType
§username: String
Trait Implementations§
Source§impl Clone for PackConnectionHttpBasicCredentials
impl Clone for PackConnectionHttpBasicCredentials
Source§fn clone(&self) -> PackConnectionHttpBasicCredentials
fn clone(&self) -> PackConnectionHttpBasicCredentials
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<'de> Deserialize<'de> for PackConnectionHttpBasicCredentials
impl<'de> Deserialize<'de> for PackConnectionHttpBasicCredentials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PackConnectionHttpBasicCredentials> for PackConnectionHttpBasicCredentials
impl From<&PackConnectionHttpBasicCredentials> for PackConnectionHttpBasicCredentials
Source§fn from(value: &PackConnectionHttpBasicCredentials) -> Self
fn from(value: &PackConnectionHttpBasicCredentials) -> Self
Converts to this type from the input type.
Source§impl From<PackConnectionHttpBasicCredentials> for PackSystemConnectionCredentials
impl From<PackConnectionHttpBasicCredentials> for PackSystemConnectionCredentials
Source§fn from(value: PackConnectionHttpBasicCredentials) -> Self
fn from(value: PackConnectionHttpBasicCredentials) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackConnectionHttpBasicCredentials
impl RefUnwindSafe for PackConnectionHttpBasicCredentials
impl Send for PackConnectionHttpBasicCredentials
impl Sync for PackConnectionHttpBasicCredentials
impl Unpin for PackConnectionHttpBasicCredentials
impl UnwindSafe for PackConnectionHttpBasicCredentials
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