pub struct GitRepoVolume {
pub directory: Option<String>,
pub repository: String,
pub revision: Option<String>,
}Expand description
Represents a volume that is populated with the contents of a git repository
Fields§
§directory: Option<String>Target directory name. Must not contain or start with ‘..’. If ‘.’ is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
repository: StringRepository URL
revision: Option<String>Commit hash for the specified revision.
Implementations§
Trait Implementations§
Source§impl Clone for GitRepoVolume
impl Clone for GitRepoVolume
Source§fn clone(&self) -> GitRepoVolume
fn clone(&self) -> GitRepoVolume
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 Debug for GitRepoVolume
impl Debug for GitRepoVolume
Source§impl<'de> Deserialize<'de> for GitRepoVolume
impl<'de> Deserialize<'de> for GitRepoVolume
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 PartialEq for GitRepoVolume
impl PartialEq for GitRepoVolume
Source§impl Serialize for GitRepoVolume
impl Serialize for GitRepoVolume
impl StructuralPartialEq for GitRepoVolume
Auto Trait Implementations§
impl Freeze for GitRepoVolume
impl RefUnwindSafe for GitRepoVolume
impl Send for GitRepoVolume
impl Sync for GitRepoVolume
impl Unpin for GitRepoVolume
impl UnwindSafe for GitRepoVolume
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