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