pub struct GitSource {
pub branch: Option<String>,
pub provider: Option<String>,
pub url: Option<String>,
}Fields§
§branch: Option<String>Branch is the branch a push-to-deploy build tracks, main when the create named none — a push to any other branch, and every tag push, builds nothing here. A deploy may name a commit instead, for that deploy alone.
provider: Option<String>Provider is derived from the URL — github, gitlab, bitbucket, or git for anything else. It is a label for display; no behaviour keys on it.
url: Option<String>URL is the clone URL a git app builds from, stored as sent once the build path’s allowlist accepted it (validateRepoURL). It is also what a landed push is MATCHED against, so a push to any other repo never builds this app.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitSource
impl<'de> Deserialize<'de> for GitSource
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 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