podman_rest_client/v5/models/auth_config.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// AuthConfig contains authorization information for connecting to a Registry
4pub struct AuthConfig {
5 pub auth: Option<String>,
6 /// Email is an optional value associated with the username.
7 /// This field is deprecated and will be removed in a later
8 /// version of docker.
9 pub email: Option<String>,
10 /// IdentityToken is used to authenticate the user and get
11 /// an access token for the registry.
12 pub identitytoken: Option<String>,
13 pub password: Option<String>,
14 /// RegistryToken is a bearer token to be sent to a registry
15 pub registrytoken: Option<String>,
16 pub serveraddress: Option<String>,
17 pub username: Option<String>,
18}