pub struct CreateServiceRequest {
pub enabled: bool,
pub domain: Option<Vec<String>>,
pub prefix: String,
pub container_image: String,
pub container_image_version: Option<String>,
pub container_port: Option<i32>,
pub container_pull_user: Option<String>,
pub container_pull_pwd: Option<String>,
pub env_variables: Option<HashMap<String, CreateJobRequestEnvVariablesValue>>,
pub rewrite: Option<Box<ServiceRewrite>>,
pub login: Option<Box<ServiceLogin>>,
pub mounts: Option<Vec<VolumeMount>>,
}Fields§
§enabled: boolwhether this service is active and should be propagated to ingress
domain: Option<Vec<String>>by default this property is empty and represents that all verified domains will be added. I a domain is added through a service, this service will only be served through that domain, und new domain als also no longer added automatically.
prefix: String§container_image: String§container_image_version: Option<String>the version of the container image; either empty string to reset or a sha256 digest in the form of "sha256:digest"
container_port: Option<i32>Optional port to expose externally; when omitted the first open container port is exposed automatically.
container_pull_user: Option<String>§container_pull_pwd: Option<String>§env_variables: Option<HashMap<String, CreateJobRequestEnvVariablesValue>>§rewrite: Option<Box<ServiceRewrite>>§login: Option<Box<ServiceLogin>>§mounts: Option<Vec<VolumeMount>>Implementations§
Trait Implementations§
Source§impl Clone for CreateServiceRequest
impl Clone for CreateServiceRequest
Source§fn clone(&self) -> CreateServiceRequest
fn clone(&self) -> CreateServiceRequest
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 CreateServiceRequest
impl Debug for CreateServiceRequest
Source§impl Default for CreateServiceRequest
impl Default for CreateServiceRequest
Source§fn default() -> CreateServiceRequest
fn default() -> CreateServiceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateServiceRequest
impl<'de> Deserialize<'de> for CreateServiceRequest
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
Source§impl PartialEq for CreateServiceRequest
impl PartialEq for CreateServiceRequest
Source§impl Serialize for CreateServiceRequest
impl Serialize for CreateServiceRequest
impl StructuralPartialEq for CreateServiceRequest
Auto Trait Implementations§
impl Freeze for CreateServiceRequest
impl RefUnwindSafe for CreateServiceRequest
impl Send for CreateServiceRequest
impl Sync for CreateServiceRequest
impl Unpin for CreateServiceRequest
impl UnwindSafe for CreateServiceRequest
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