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: StringAlphanumeric string identifying the service.
version_id: i32Integer 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
sourceimpl Clone for CreateSnippetParams
impl Clone for CreateSnippetParams
sourcefn clone(&self) -> CreateSnippetParams
fn clone(&self) -> CreateSnippetParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CreateSnippetParams
impl Debug for CreateSnippetParams
sourceimpl Default for CreateSnippetParams
impl Default for CreateSnippetParams
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more