pub struct PullArgs {
pub registry: String,
pub repository: String,
pub reference: String,
pub username: Option<String>,
pub password: Option<String>,
pub skip_tls: bool,
pub cache_dir: PathBuf,
pub verbose: bool,
pub timeout: u64,
}Expand description
拉取镜像的参数
Fields§
§registry: StringRegistry 地址 (默认: https://registry-1.docker.io)
repository: StringRepository 名称 (例如: library/ubuntu)
reference: String标签或摘要 (例如: latest 或 sha256:…)
username: Option<String>Registry 用户名
password: Option<String>Registry 密码
skip_tls: bool跳过 TLS 证书验证
cache_dir: PathBuf缓存目录 (默认: .cache)
verbose: bool启用详细输出
timeout: u64超时时间(秒)
Implementations§
Trait Implementations§
Source§impl Args for PullArgs
impl Args for PullArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PullArgs
impl FromArgMatches for PullArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PullArgs
impl RefUnwindSafe for PullArgs
impl Send for PullArgs
impl Sync for PullArgs
impl Unpin for PullArgs
impl UnwindSafe for PullArgs
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