#[non_exhaustive]pub struct GitSource {
pub repo: Option<String>,
pub directory: Option<String>,
pub ref: Option<String>,
/* private fields */
}Expand description
A set of files in a Git repository.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repo: Option<String>Optional. Repository URL. Example: ‘https://github.com/kubernetes/examples.git’
directory: Option<String>Optional. Subdirectory inside the repository. Example: ‘staging/my-package’
ref: Option<String>Optional. Git reference (e.g. branch or tag).
Implementations§
Source§impl GitSource
impl GitSource
pub fn new() -> Self
Sourcepub fn set_or_clear_repo<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_repo<T>(self, v: Option<T>) -> Self
Sourcepub fn set_directory<T>(self, v: T) -> Self
pub fn set_directory<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_directory<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_directory<T>(self, v: Option<T>) -> Self
Trait Implementations§
impl StructuralPartialEq for GitSource
Auto Trait Implementations§
impl Freeze for GitSource
impl RefUnwindSafe for GitSource
impl Send for GitSource
impl Sync for GitSource
impl Unpin for GitSource
impl UnsafeUnpin for GitSource
impl UnwindSafe for GitSource
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