pub struct ConfigTemplate {Show 22 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub description: Option<String>,
pub environment_params: Option<Option<Value>>,
pub template_code: String,
pub mime_type: Option<String>,
pub file_name: Option<String>,
pub file_extension: Option<String>,
pub as_attachment: Option<bool>,
pub debug: Option<bool>,
pub data_source: Option<Box<BriefDataSource>>,
pub data_path: Option<String>,
pub data_file: Option<Box<BriefDataFile>>,
pub auto_sync_enabled: Option<bool>,
pub data_synced: Option<Option<String>>,
pub owner: Option<Option<Box<BriefOwner>>>,
pub tags: Option<Vec<NestedTag>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
ConfigTemplate : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§description: Option<String>§environment_params: Option<Option<Value>>Any additional parameters (https://jinja.palletsprojects.com/en/stable/api/#jinja2.Environment) to pass when constructing the Jinja environment
template_code: StringJinja template code.
mime_type: Option<String>Defaults to text/plain; charset=utf-8
file_name: Option<String>Filename to give to the rendered export file
file_extension: Option<String>Extension to append to the rendered filename
as_attachment: Option<bool>Download file as attachment
debug: Option<bool>Enable verbose error output when rendering this template. Not recommended for production use.
data_source: Option<Box<BriefDataSource>>§data_path: Option<String>Path to remote file (relative to data source root)
data_file: Option<Box<BriefDataFile>>§auto_sync_enabled: Option<bool>Enable automatic synchronization of data when the data file is updated
data_synced: Option<Option<String>>§owner: Option<Option<Box<BriefOwner>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Source§impl ConfigTemplate
impl ConfigTemplate
Sourcepub fn new(name: String, template_code: String) -> ConfigTemplate
pub fn new(name: String, template_code: String) -> ConfigTemplate
Adds an owner field for models which have a ForeignKey to users.Owner.
Trait Implementations§
Source§impl Clone for ConfigTemplate
impl Clone for ConfigTemplate
Source§fn clone(&self) -> ConfigTemplate
fn clone(&self) -> ConfigTemplate
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 ConfigTemplate
impl Debug for ConfigTemplate
Source§impl Default for ConfigTemplate
impl Default for ConfigTemplate
Source§fn default() -> ConfigTemplate
fn default() -> ConfigTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigTemplate
impl<'de> Deserialize<'de> for ConfigTemplate
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 ConfigTemplate
impl PartialEq for ConfigTemplate
Source§fn eq(&self, other: &ConfigTemplate) -> bool
fn eq(&self, other: &ConfigTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigTemplate
impl Serialize for ConfigTemplate
impl StructuralPartialEq for ConfigTemplate
Auto Trait Implementations§
impl Freeze for ConfigTemplate
impl RefUnwindSafe for ConfigTemplate
impl Send for ConfigTemplate
impl Sync for ConfigTemplate
impl Unpin for ConfigTemplate
impl UnsafeUnpin for ConfigTemplate
impl UnwindSafe for ConfigTemplate
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