pub struct Maintainer {
pub name: String,
}Expand description
Represents a MAINTAINER instruction.
WARNING: THE MAINTAINER INSTRUCTION IS DEPRECATED. FOR PARITY TO DOCKER, IT IS LEFT IN BUT PLEASE USE THE LABEL INSTRUCTION INSTEAD. SEE https://docs.docker.com/reference/dockerfile/#maintainer-deprecated FOR MORE DETAILS.
use nanite_docker::Maintainer;
let maintainer = Maintainer {
name: "John Doe".to_string(),
};
let maintainer_built = format!("{maintainer}");
assert_eq!(maintainer_built, "MAINTAINER John Doe");Fields§
§name: StringTrait Implementations§
Source§impl Clone for Maintainer
impl Clone for Maintainer
Source§fn clone(&self) -> Maintainer
fn clone(&self) -> Maintainer
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 Maintainer
impl Debug for Maintainer
Auto Trait Implementations§
impl Freeze for Maintainer
impl RefUnwindSafe for Maintainer
impl Send for Maintainer
impl Sync for Maintainer
impl Unpin for Maintainer
impl UnwindSafe for Maintainer
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