pub struct ExportTemplate {Show 17 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub content_type: String,
pub owner_content_type: Option<Option<String>>,
pub owner: Option<Option<Box<ExportTemplateOwner>>>,
pub owner_object_id: Option<Option<Uuid>>,
pub name: String,
pub description: Option<String>,
pub template_code: String,
pub mime_type: Option<String>,
pub file_extension: Option<String>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub notes_url: Option<String>,
}Expand description
ExportTemplate : Extend ValidatedModelSerializer with a relationships field.
Fields§
§id: Option<Uuid>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§content_type: String§owner_content_type: Option<Option<String>>§owner: Option<Option<Box<ExportTemplateOwner>>>§owner_object_id: Option<Option<Uuid>>§name: String§description: Option<String>§template_code: StringThe list of objects being exported is passed as a context variable named queryset.
mime_type: Option<String>Defaults to text/plain
file_extension: Option<String>Extension to append to the rendered filename
created: Option<Option<String>>§last_updated: Option<Option<String>>§notes_url: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ExportTemplate
impl Clone for ExportTemplate
Source§fn clone(&self) -> ExportTemplate
fn clone(&self) -> ExportTemplate
Returns a duplicate 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 ExportTemplate
impl Debug for ExportTemplate
Source§impl Default for ExportTemplate
impl Default for ExportTemplate
Source§fn default() -> ExportTemplate
fn default() -> ExportTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExportTemplate
impl<'de> Deserialize<'de> for ExportTemplate
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 ExportTemplate
impl PartialEq for ExportTemplate
Source§impl Serialize for ExportTemplate
impl Serialize for ExportTemplate
impl StructuralPartialEq for ExportTemplate
Auto Trait Implementations§
impl Freeze for ExportTemplate
impl RefUnwindSafe for ExportTemplate
impl Send for ExportTemplate
impl Sync for ExportTemplate
impl Unpin for ExportTemplate
impl UnsafeUnpin for ExportTemplate
impl UnwindSafe for ExportTemplate
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