pub struct FlightBuilder { /* private fields */ }
Expand description
A builder to construct Flight
s
Implementations§
Source§impl FlightBuilder
impl FlightBuilder
Sourcepub fn name<S: Into<String>>(self, name: S) -> Self
pub fn name<S: Into<String>>(self, name: S) -> Self
The human readable Flight
name, which must be unique within the Formation
Sourcepub fn image<R: AsRef<str>>(self, image_ref: R) -> Self
pub fn image<R: AsRef<str>>(self, image_ref: R) -> Self
A container image registry reference which points to the container image this Flight
should uses
§Panics
This method panic!
s if the image_ref
provided cannot be parsed into a valid
ImageReference
Sourcepub fn image_reference(self, image_ref: ImageReference) -> Self
pub fn image_reference(self, image_ref: ImageReference) -> Self
A container image registry reference which points to the container image this Flight
should uses.
This method allows providing a pre-parsed ImageReference
instead of a string which can
panic!
on parsing in FlightBuilder::image
.
Trait Implementations§
Source§impl Debug for FlightBuilder
impl Debug for FlightBuilder
Source§impl Default for FlightBuilder
impl Default for FlightBuilder
Source§fn default() -> FlightBuilder
fn default() -> FlightBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlightBuilder
impl RefUnwindSafe for FlightBuilder
impl Send for FlightBuilder
impl Sync for FlightBuilder
impl Unpin for FlightBuilder
impl UnwindSafe for FlightBuilder
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