pub struct BuildSpec {
pub repo: String,
pub store: String,
pub git_ref: Option<String>,
pub dockerfile: Option<String>,
pub context: Option<String>,
pub image_name: Option<String>,
pub image_size_mb: Option<u64>,
pub auth: Option<SecretRef>,
}Expand description
Where a managed deployment’s image is built from: a git checkout, or a
Dockerfile manifest in an artifact store. Exactly one of repo and store
is set.
Fields§
§repo: StringEmpty when the recipe comes from store. A String rather than an
Option because #[serde(default)] already renders an absent field
empty, and every read of it on this side is a display.
store: StringEmpty when the recipe comes from repo.
git_ref: Option<String>§dockerfile: Option<String>§context: Option<String>§image_name: Option<String>§image_size_mb: Option<u64>§auth: Option<SecretRef>Implementations§
Source§impl BuildSpec
impl BuildSpec
Sourcepub fn summary(&self) -> String
pub fn summary(&self) -> String
One column: github.com/acme/web@main, or art:8080/web-rootfs when the
recipe comes out of a store.
The store form deliberately reads like ArtifactSpec::summary rather
than like the git form: the two share the SOURCE column, and what a
reader scanning a fleet wants from it is where this came from. Which
column it appears in already says whether it is built or pulled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuildSpec
impl<'de> Deserialize<'de> for BuildSpec
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
Auto Trait Implementations§
impl Freeze for BuildSpec
impl RefUnwindSafe for BuildSpec
impl Send for BuildSpec
impl Sync for BuildSpec
impl Unpin for BuildSpec
impl UnsafeUnpin for BuildSpec
impl UnwindSafe for BuildSpec
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