pub struct SnippetWithDynamicNumber {
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§
Source§impl SnippetWithDynamicNumber
impl SnippetWithDynamicNumber
pub fn new() -> SnippetWithDynamicNumber
Trait Implementations§
Source§impl Clone for SnippetWithDynamicNumber
impl Clone for SnippetWithDynamicNumber
Source§fn clone(&self) -> SnippetWithDynamicNumber
fn clone(&self) -> SnippetWithDynamicNumber
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 SnippetWithDynamicNumber
impl Debug for SnippetWithDynamicNumber
Source§impl Default for SnippetWithDynamicNumber
impl Default for SnippetWithDynamicNumber
Source§fn default() -> SnippetWithDynamicNumber
fn default() -> SnippetWithDynamicNumber
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnippetWithDynamicNumber
impl<'de> Deserialize<'de> for SnippetWithDynamicNumber
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 SnippetWithDynamicNumber
impl PartialEq for SnippetWithDynamicNumber
Source§impl Serialize for SnippetWithDynamicNumber
impl Serialize for SnippetWithDynamicNumber
impl StructuralPartialEq for SnippetWithDynamicNumber
Auto Trait Implementations§
impl Freeze for SnippetWithDynamicNumber
impl RefUnwindSafe for SnippetWithDynamicNumber
impl Send for SnippetWithDynamicNumber
impl Sync for SnippetWithDynamicNumber
impl Unpin for SnippetWithDynamicNumber
impl UnwindSafe for SnippetWithDynamicNumber
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