Struct fastly_api::models::snippet::Snippet   
source · pub struct Snippet {
    pub name: Option<String>,
    pub _type: Option<Type>,
    pub content: Option<String>,
    pub priority: Option<String>,
    pub dynamic: Option<Dynamic>,
}Fields§
§name: Option<String>The name for the snippet.
_type: Option<Type>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<Dynamic>Sets the snippet version.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Snippet
 
impl<'de> Deserialize<'de> for Snippet
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Snippet
 
impl PartialEq for Snippet
impl StructuralPartialEq for Snippet
Auto Trait Implementations§
impl Freeze for Snippet
impl RefUnwindSafe for Snippet
impl Send for Snippet
impl Sync for Snippet
impl Unpin for Snippet
impl UnwindSafe for Snippet
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)