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<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.
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<String>
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
Auto Trait Implementations§
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