pub struct ServiceCheckBuilder { /* private fields */ }
Expand description
Builder for ServiceCheck
.
Implementations§
Source§impl ServiceCheckBuilder
impl ServiceCheckBuilder
pub fn initial_status(&mut self, value: Option<String>) -> &mut Self
pub fn notes(&mut self, value: String) -> &mut Self
pub fn header(&mut self, value: HashMap<String, Vec<String>>) -> &mut Self
pub fn timeout(&mut self, value: TimeDelta) -> &mut Self
pub fn grpc_service(&mut self, value: Option<String>) -> &mut Self
pub fn command(&mut self, value: String) -> &mut Self
pub fn protocol(&mut self, value: String) -> &mut Self
pub fn port_label(&mut self, value: Option<String>) -> &mut Self
pub fn task_name(&mut self, value: Option<String>) -> &mut Self
pub fn success_before_passing(&mut self, value: Option<i64>) -> &mut Self
pub fn tls_skip_verify(&mut self, value: Option<bool>) -> &mut Self
pub fn method(&mut self, value: String) -> &mut Self
pub fn check_restart(&mut self, value: Option<CheckRestart>) -> &mut Self
pub fn grpc_use_tls(&mut self, value: Option<bool>) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
pub fn interval(&mut self, value: TimeDelta) -> &mut Self
pub fn tls_server_name(&mut self, value: Option<String>) -> &mut Self
pub fn body(&mut self, value: String) -> &mut Self
pub fn on_update(&mut self, value: Option<String>) -> &mut Self
pub fn advertise(&mut self, value: String) -> &mut Self
pub fn failures_before_warning(&mut self, value: Option<i64>) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn args(&mut self, value: Vec<String>) -> &mut Self
pub fn path(&mut self, value: String) -> &mut Self
pub fn expose(&mut self, value: bool) -> &mut Self
pub fn address_mode(&mut self, value: Option<String>) -> &mut Self
pub fn failures_before_critical(&mut self, value: Option<i64>) -> &mut Self
Sourcepub fn build(&self) -> Result<ServiceCheck, ServiceCheckBuilderError>
pub fn build(&self) -> Result<ServiceCheck, ServiceCheckBuilderError>
Trait Implementations§
Source§impl Clone for ServiceCheckBuilder
impl Clone for ServiceCheckBuilder
Source§fn clone(&self) -> ServiceCheckBuilder
fn clone(&self) -> ServiceCheckBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ServiceCheckBuilder
impl RefUnwindSafe for ServiceCheckBuilder
impl Send for ServiceCheckBuilder
impl Sync for ServiceCheckBuilder
impl Unpin for ServiceCheckBuilder
impl UnwindSafe for ServiceCheckBuilder
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