pub struct CreateView {
pub model_name: String,
pub verbose_name: String,
pub title: String,
pub breadcrumbs: Vec<Breadcrumb>,
pub fields: Vec<FormField>,
pub fieldsets: Vec<ViewFieldset>,
pub submit_url: String,
pub cancel_url: String,
pub inlines: Vec<InlineView>,
}Expand description
Create view for adding a new record
Fields§
§model_name: StringModel name
verbose_name: StringVerbose name (singular)
title: StringPage title
Breadcrumbs
fields: Vec<FormField>Form fields
fieldsets: Vec<ViewFieldset>Fieldsets
submit_url: StringSubmit URL
cancel_url: StringCancel URL
inlines: Vec<InlineView>Inlines
Implementations§
Source§impl CreateView
impl CreateView
Sourcepub fn new(model: &ModelDefinition) -> Self
pub fn new(model: &ModelDefinition) -> Self
Create a new create view
Trait Implementations§
Source§impl Clone for CreateView
impl Clone for CreateView
Source§fn clone(&self) -> CreateView
fn clone(&self) -> CreateView
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 CreateView
impl Debug for CreateView
Source§impl<'de> Deserialize<'de> for CreateView
impl<'de> Deserialize<'de> for CreateView
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
Auto Trait Implementations§
impl Freeze for CreateView
impl RefUnwindSafe for CreateView
impl Send for CreateView
impl Sync for CreateView
impl Unpin for CreateView
impl UnwindSafe for CreateView
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