Struct fastly_api::apis::snippet_api::CreateSnippetParams
source · pub struct CreateSnippetParams {
pub service_id: String,
pub version_id: i32,
pub name: Option<String>,
pub dynamic: Option<i32>,
pub _type: Option<String>,
pub content: Option<String>,
pub priority: Option<i32>,
}
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.
dynamic: Option<i32>
Sets the snippet version.
_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<i32>
Priority determines execution order. Lower numbers execute first.
Trait Implementations§
source§impl Clone for CreateSnippetParams
impl Clone for CreateSnippetParams
source§fn clone(&self) -> CreateSnippetParams
fn clone(&self) -> CreateSnippetParams
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 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