pub struct EditView {
pub model_name: String,
pub verbose_name: String,
pub title: String,
pub breadcrumbs: Vec<Breadcrumb>,
pub id: String,
pub fields: Vec<FormField>,
pub fieldsets: Vec<ViewFieldset>,
pub submit_url: String,
pub cancel_url: String,
pub delete_url: String,
pub can_delete: bool,
pub inlines: Vec<InlineView>,
}Expand description
Edit view for modifying a record
Fields§
§model_name: StringModel name
verbose_name: StringVerbose name
title: StringPage title
Breadcrumbs
id: StringRecord ID
fields: Vec<FormField>Form fields
fieldsets: Vec<ViewFieldset>Fieldsets
submit_url: StringSubmit URL
cancel_url: StringCancel URL
delete_url: StringDelete URL
can_delete: boolCan delete?
inlines: Vec<InlineView>Inlines
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditView
impl<'de> Deserialize<'de> for EditView
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 EditView
impl RefUnwindSafe for EditView
impl Send for EditView
impl Sync for EditView
impl Unpin for EditView
impl UnsafeUnpin for EditView
impl UnwindSafe for EditView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<R, D> DepsPresent<D> for R
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging