pub struct AddGitRepo {
pub repo: String,
pub options: CopyOptions,
pub exclude: Vec<String>,
pub keep_git_dir: Option<bool>,
}
Expand description
Represents the ADD instruction in a Dockerfile specific for Git repo. See https://docs.docker.com/reference/dockerfile/#adding-private-git-repositories
Fields§
§repo: String
The URL of the Git repository
options: CopyOptions
The options of the copy
exclude: Vec<String>
See https://docs.docker.com/reference/dockerfile/#copy—exclude
keep_git_dir: Option<bool>
Keep the git directory See https://docs.docker.com/reference/dockerfile/#add—keep-git-dir
Trait Implementations§
Source§impl Clone for AddGitRepo
impl Clone for AddGitRepo
Source§fn clone(&self) -> AddGitRepo
fn clone(&self) -> AddGitRepo
Returns a copy 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 AddGitRepo
impl Debug for AddGitRepo
Source§impl Default for AddGitRepo
impl Default for AddGitRepo
Source§fn default() -> AddGitRepo
fn default() -> AddGitRepo
Returns the “default value” for a type. Read more
Source§impl From<AddGitRepoPatch> for AddGitRepo
impl From<AddGitRepoPatch> for AddGitRepo
Source§fn from(value: AddGitRepoPatch) -> Self
fn from(value: AddGitRepoPatch) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
impl From<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
Source§fn from(value: ParsableStruct<AddGitRepoPatch>) -> Self
fn from(value: ParsableStruct<AddGitRepoPatch>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddGitRepo
impl PartialEq for AddGitRepo
Source§impl Patch<AddGitRepoPatch> for AddGitRepo
impl Patch<AddGitRepoPatch> for AddGitRepo
Source§fn apply(&mut self, patch: AddGitRepoPatch)
fn apply(&mut self, patch: AddGitRepoPatch)
Apply a patch
Source§fn into_patch(self) -> AddGitRepoPatch
fn into_patch(self) -> AddGitRepoPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> AddGitRepoPatch
fn into_patch_by_diff(self, previous_struct: Self) -> AddGitRepoPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> AddGitRepoPatch
fn new_empty_patch() -> AddGitRepoPatch
Get an empty patch instance
Source§impl Patch<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
impl Patch<ParsableStruct<AddGitRepoPatch>> for AddGitRepo
Source§fn apply(&mut self, patch: ParsableStruct<AddGitRepoPatch>)
fn apply(&mut self, patch: ParsableStruct<AddGitRepoPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<AddGitRepoPatch>
fn into_patch(self) -> ParsableStruct<AddGitRepoPatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(
self,
previous_struct: Self,
) -> ParsableStruct<AddGitRepoPatch>
fn into_patch_by_diff( self, previous_struct: Self, ) -> ParsableStruct<AddGitRepoPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<AddGitRepoPatch>
fn new_empty_patch() -> ParsableStruct<AddGitRepoPatch>
Get an empty patch instance
Source§impl Patch<UnknownPatch> for AddGitRepo
impl Patch<UnknownPatch> for AddGitRepo
Source§fn apply(&mut self, patch: UnknownPatch)
fn apply(&mut self, patch: UnknownPatch)
Apply a patch
Source§fn into_patch(self) -> UnknownPatch
fn into_patch(self) -> UnknownPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> UnknownPatch
fn into_patch_by_diff(self, previous_struct: Self) -> UnknownPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> UnknownPatch
fn new_empty_patch() -> UnknownPatch
Get an empty patch instance
Source§impl Serialize for AddGitRepo
impl Serialize for AddGitRepo
impl StructuralPartialEq for AddGitRepo
Auto Trait Implementations§
impl Freeze for AddGitRepo
impl RefUnwindSafe for AddGitRepo
impl Send for AddGitRepo
impl Sync for AddGitRepo
impl Unpin for AddGitRepo
impl UnwindSafe for AddGitRepo
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