pub enum AgentImage {
Reference(String),
Full(DeployImage),
}Expand description
A container image for a deployment: either a reference string, or a full
DeployImage.
let image: AgentImage = "registry.videosdk.live/acme/agent:1.4".into();
let private: AgentImage = DeployImage {
image_url: "registry.example.com/agent".into(),
image_pull_secret: Some("secret-1".into()),
..Default::default()
}
.into();Variants§
Reference(String)
An image reference, e.g. registry.videosdk.live/acme/agent:1.4.
Full(DeployImage)
A full image object, for a private or managed registry.
Trait Implementations§
Source§impl Clone for AgentImage
impl Clone for AgentImage
Source§fn clone(&self) -> AgentImage
fn clone(&self) -> AgentImage
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 AgentImage
impl Debug for AgentImage
Source§impl From<&str> for AgentImage
impl From<&str> for AgentImage
Source§impl From<DeployImage> for AgentImage
impl From<DeployImage> for AgentImage
Source§fn from(image: DeployImage) -> Self
fn from(image: DeployImage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentImage
impl RefUnwindSafe for AgentImage
impl Send for AgentImage
impl Sync for AgentImage
impl Unpin for AgentImage
impl UnsafeUnpin for AgentImage
impl UnwindSafe for AgentImage
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