pub struct DownloadParams {
pub cwd: PathBuf,
pub org: Option<String>,
pub save_only: bool,
pub one_off: bool,
pub global: bool,
pub global_prefix: Option<PathBuf>,
pub json: bool,
pub silent: bool,
pub download_mode: String,
pub api_overrides: ApiClientEnvOverrides,
}Expand description
Download parameters shared between get and scan commands.
Fields§
§cwd: PathBuf§org: Option<String>§save_only: bool§one_off: bool§global: bool§global_prefix: Option<PathBuf>§json: bool§silent: bool§download_mode: String--download-mode value forwarded to the apply step.
api_overrides: ApiClientEnvOverridesAPI client overrides — propagates the caller’s CLI flags
(--api-url, --api-token, --proxy-url) into the nested API
client constructed here. Without this, download_and_apply_patches
would only honor env vars and ignore the user’s flags.
Auto Trait Implementations§
impl Freeze for DownloadParams
impl RefUnwindSafe for DownloadParams
impl Send for DownloadParams
impl Sync for DownloadParams
impl Unpin for DownloadParams
impl UnsafeUnpin for DownloadParams
impl UnwindSafe for DownloadParams
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more