pub struct UpdateServiceRequest {
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: HashMap<String, CreateJobRequestEnvVariablesValue>,
pub rewrite: Option<Box<ServiceRewrite>>,
pub login: Option<Box<UpdateServiceRequestLogin>>,
pub mounts: Option<Vec<VolumeMount>>,
}Expand description
UpdateServiceRequest : Full update for a service; all fields are required and will overwrite existing values
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: HashMap<String, CreateJobRequestEnvVariablesValue>§rewrite: Option<Box<ServiceRewrite>>§login: Option<Box<UpdateServiceRequestLogin>>§mounts: Option<Vec<VolumeMount>>Implementations§
Source§impl UpdateServiceRequest
impl UpdateServiceRequest
Sourcepub fn new(
enabled: bool,
prefix: String,
container_image: String,
env_variables: HashMap<String, CreateJobRequestEnvVariablesValue>,
) -> UpdateServiceRequest
pub fn new( enabled: bool, prefix: String, container_image: String, env_variables: HashMap<String, CreateJobRequestEnvVariablesValue>, ) -> UpdateServiceRequest
Full update for a service; all fields are required and will overwrite existing values
Trait Implementations§
Source§impl Clone for UpdateServiceRequest
impl Clone for UpdateServiceRequest
Source§fn clone(&self) -> UpdateServiceRequest
fn clone(&self) -> UpdateServiceRequest
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 UpdateServiceRequest
impl Debug for UpdateServiceRequest
Source§impl Default for UpdateServiceRequest
impl Default for UpdateServiceRequest
Source§fn default() -> UpdateServiceRequest
fn default() -> UpdateServiceRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateServiceRequest
impl<'de> Deserialize<'de> for UpdateServiceRequest
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 UpdateServiceRequest
impl PartialEq for UpdateServiceRequest
Source§fn eq(&self, other: &UpdateServiceRequest) -> bool
fn eq(&self, other: &UpdateServiceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateServiceRequest
impl Serialize for UpdateServiceRequest
impl StructuralPartialEq for UpdateServiceRequest
Auto Trait Implementations§
impl Freeze for UpdateServiceRequest
impl RefUnwindSafe for UpdateServiceRequest
impl Send for UpdateServiceRequest
impl Sync for UpdateServiceRequest
impl Unpin for UpdateServiceRequest
impl UnsafeUnpin for UpdateServiceRequest
impl UnwindSafe for UpdateServiceRequest
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