pub struct GitOrigin {
pub branch: Option<String>,
pub url: Option<String>,
}Fields§
§branch: Option<String>Branch is the branch to build; defaults to main for a git source.
url: Option<String>URL is the repository clone URL. Required for source git, and validated against the same allowlist the privileged build enforces.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitOrigin
impl<'de> Deserialize<'de> for GitOrigin
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
impl StructuralPartialEq for GitOrigin
Auto Trait Implementations§
impl Freeze for GitOrigin
impl RefUnwindSafe for GitOrigin
impl Send for GitOrigin
impl Sync for GitOrigin
impl Unpin for GitOrigin
impl UnsafeUnpin for GitOrigin
impl UnwindSafe for GitOrigin
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