pub enum TargetConfig {
DockerArchive {
name: String,
publisher: String,
default: bool,
depends_on: Vec<String>,
platform: String,
image: String,
asset: String,
build: Vec<String>,
local_check: Vec<String>,
},
MavenReactor {
name: String,
publisher: String,
default: bool,
depends_on: Vec<String>,
wrapper: PathBuf,
pom: PathBuf,
projects: Vec<String>,
also_make: bool,
remote_check: Vec<String>,
},
OciImage {
name: String,
default: bool,
depends_on: Vec<String>,
image: String,
platform: String,
reuse_check: Vec<String>,
build: Vec<String>,
},
}Variants§
Implementations§
Source§impl TargetConfig
impl TargetConfig
pub fn name(&self) -> &str
pub fn publisher(&self) -> &str
pub fn configured_publisher(&self) -> Option<&str>
pub fn is_default(&self) -> bool
pub fn dependencies(&self) -> &[String]
pub fn is_oci_image(&self) -> bool
Trait Implementations§
Source§impl Clone for TargetConfig
impl Clone for TargetConfig
Source§fn clone(&self) -> TargetConfig
fn clone(&self) -> TargetConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TargetConfig
impl Debug for TargetConfig
Source§impl<'de> Deserialize<'de> for TargetConfig
impl<'de> Deserialize<'de> for TargetConfig
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 Eq for TargetConfig
Source§impl PartialEq for TargetConfig
impl PartialEq for TargetConfig
impl StructuralPartialEq for TargetConfig
Auto Trait Implementations§
impl Freeze for TargetConfig
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnsafeUnpin for TargetConfig
impl UnwindSafe for TargetConfig
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