pub struct ImageMetadataTemplate {
pub create_only: Option<bool>,
pub gid: Option<String>,
pub mode: Option<String>,
pub properties: Option<HashMap<String, String>>,
pub template: Option<String>,
pub uid: Option<String>,
pub when: Option<Vec<String>>,
}Expand description
ImageMetadataTemplate : ImageMetadataTemplate represents a template entry in image metadata (used in image tarball)
Fields§
§create_only: Option<bool>Whether to trigger only if the file is missing
gid: Option<String>The file owner gid.
mode: Option<String>The file permissions.
properties: Option<HashMap<String, String>>Key/value properties to pass to the template
template: Option<String>The template itself as a valid pongo2 template
uid: Option<String>The file owner uid.
when: Option<Vec<String>>When to trigger the template (create, copy or start)
Implementations§
Source§impl ImageMetadataTemplate
impl ImageMetadataTemplate
Sourcepub fn new() -> ImageMetadataTemplate
pub fn new() -> ImageMetadataTemplate
ImageMetadataTemplate represents a template entry in image metadata (used in image tarball)
Trait Implementations§
Source§impl Clone for ImageMetadataTemplate
impl Clone for ImageMetadataTemplate
Source§fn clone(&self) -> ImageMetadataTemplate
fn clone(&self) -> ImageMetadataTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageMetadataTemplate
impl Debug for ImageMetadataTemplate
Source§impl Default for ImageMetadataTemplate
impl Default for ImageMetadataTemplate
Source§fn default() -> ImageMetadataTemplate
fn default() -> ImageMetadataTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageMetadataTemplate
impl<'de> Deserialize<'de> for ImageMetadataTemplate
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 ImageMetadataTemplate
impl PartialEq for ImageMetadataTemplate
Source§fn eq(&self, other: &ImageMetadataTemplate) -> bool
fn eq(&self, other: &ImageMetadataTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImageMetadataTemplate
impl Serialize for ImageMetadataTemplate
impl StructuralPartialEq for ImageMetadataTemplate
Auto Trait Implementations§
impl Freeze for ImageMetadataTemplate
impl RefUnwindSafe for ImageMetadataTemplate
impl Send for ImageMetadataTemplate
impl Sync for ImageMetadataTemplate
impl Unpin for ImageMetadataTemplate
impl UnsafeUnpin for ImageMetadataTemplate
impl UnwindSafe for ImageMetadataTemplate
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