#[non_exhaustive]pub struct GitSourceRepository {
pub repotype: Option<Repotype>,
/* private fields */
}Expand description
A repository for a git source.
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.repotype: Option<Repotype>The type of git source repo (url or dev connect).
Implementations§
Source§impl GitSourceRepository
impl GitSourceRepository
pub fn new() -> Self
Sourcepub fn set_repotype<T: Into<Option<Repotype>>>(self, v: T) -> Self
pub fn set_repotype<T: Into<Option<Repotype>>>(self, v: T) -> Self
Sourcepub fn url(&self) -> Option<&String>
pub fn url(&self) -> Option<&String>
The value of repotype
if it holds a Url, None if the field is not set or
holds a different branch.
Sourcepub fn developer_connect(&self) -> Option<&String>
pub fn developer_connect(&self) -> Option<&String>
The value of repotype
if it holds a DeveloperConnect, None if the field is not set or
holds a different branch.
Sourcepub fn set_developer_connect<T: Into<String>>(self, v: T) -> Self
pub fn set_developer_connect<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GitSourceRepository
impl Clone for GitSourceRepository
Source§fn clone(&self) -> GitSourceRepository
fn clone(&self) -> GitSourceRepository
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 GitSourceRepository
impl Debug for GitSourceRepository
Source§impl Default for GitSourceRepository
impl Default for GitSourceRepository
Source§fn default() -> GitSourceRepository
fn default() -> GitSourceRepository
Returns the “default value” for a type. Read more
Source§impl Message for GitSourceRepository
impl Message for GitSourceRepository
Source§impl PartialEq for GitSourceRepository
impl PartialEq for GitSourceRepository
impl StructuralPartialEq for GitSourceRepository
Auto Trait Implementations§
impl Freeze for GitSourceRepository
impl RefUnwindSafe for GitSourceRepository
impl Send for GitSourceRepository
impl Sync for GitSourceRepository
impl Unpin for GitSourceRepository
impl UnsafeUnpin for GitSourceRepository
impl UnwindSafe for GitSourceRepository
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