pub struct CreateConditionParams {
pub service_id: String,
pub version_id: i32,
pub comment: Option<String>,
pub name: Option<String>,
pub priority: Option<String>,
pub statement: Option<String>,
pub service_id2: Option<String>,
pub version: Option<String>,
pub _type: Option<String>,
}
Expand description
struct for passing parameters to the method create_condition
Fields§
§service_id: String
Alphanumeric string identifying the service.
version_id: i32
Integer identifying a service version.
comment: Option<String>
A freeform descriptive note.
name: Option<String>
Name of the condition. Required.
priority: Option<String>
A numeric string. Priority determines execution order. Lower numbers execute first.
statement: Option<String>
A conditional expression in VCL used to determine if the condition is met.
service_id2: Option<String>
§version: Option<String>
A numeric string that represents the service version.
_type: Option<String>
Type of the condition. Required.
Trait Implementations§
Source§impl Clone for CreateConditionParams
impl Clone for CreateConditionParams
Source§fn clone(&self) -> CreateConditionParams
fn clone(&self) -> CreateConditionParams
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 CreateConditionParams
impl Debug for CreateConditionParams
Source§impl Default for CreateConditionParams
impl Default for CreateConditionParams
Source§fn default() -> CreateConditionParams
fn default() -> CreateConditionParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateConditionParams
impl RefUnwindSafe for CreateConditionParams
impl Send for CreateConditionParams
impl Sync for CreateConditionParams
impl Unpin for CreateConditionParams
impl UnwindSafe for CreateConditionParams
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