pub struct CreateSnippetParams {
pub service_id: String,
pub version_id: i32,
pub name: Option<String>,
pub _type: Option<String>,
pub content: Option<String>,
pub priority: Option<String>,
pub dynamic: Option<String>,
}
Expand description
struct for passing parameters to the method create_snippet
Fields§
§service_id: String
Alphanumeric string identifying the service.
version_id: i32
Integer identifying a service version.
name: Option<String>
The name for the snippet.
_type: Option<String>
The location in generated VCL where the snippet should be placed.
content: Option<String>
The VCL code that specifies exactly what the snippet does.
priority: Option<String>
Priority determines execution order. Lower numbers execute first.
dynamic: Option<String>
Sets the snippet version.
Trait Implementations§
Source§impl Clone for CreateSnippetParams
impl Clone for CreateSnippetParams
Source§fn clone(&self) -> CreateSnippetParams
fn clone(&self) -> CreateSnippetParams
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 CreateSnippetParams
impl Debug for CreateSnippetParams
Source§impl Default for CreateSnippetParams
impl Default for CreateSnippetParams
Source§fn default() -> CreateSnippetParams
fn default() -> CreateSnippetParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateSnippetParams
impl RefUnwindSafe for CreateSnippetParams
impl Send for CreateSnippetParams
impl Sync for CreateSnippetParams
impl Unpin for CreateSnippetParams
impl UnwindSafe for CreateSnippetParams
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