pub struct UiContainer {
pub action: String,
pub messages: Option<Vec<UiText>>,
pub method: String,
pub nodes: Vec<UiNode>,
}Expand description
UiContainer : Container represents a HTML Form. The container can work with both HTTP Form and JSON requests
Fields§
§action: StringAction should be used as the form action URL <form action=\"{{ .Action }}\" method=\"post\">.
messages: Option<Vec<UiText>>§method: StringMethod is the form method (e.g. POST)
nodes: Vec<UiNode>Implementations§
Source§impl UiContainer
impl UiContainer
Trait Implementations§
Source§impl Clone for UiContainer
impl Clone for UiContainer
Source§fn clone(&self) -> UiContainer
fn clone(&self) -> UiContainer
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 UiContainer
impl Debug for UiContainer
Source§impl Default for UiContainer
impl Default for UiContainer
Source§fn default() -> UiContainer
fn default() -> UiContainer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UiContainer
impl<'de> Deserialize<'de> for UiContainer
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 UiContainer
impl PartialEq for UiContainer
Source§impl Serialize for UiContainer
impl Serialize for UiContainer
impl StructuralPartialEq for UiContainer
Auto Trait Implementations§
impl Freeze for UiContainer
impl RefUnwindSafe for UiContainer
impl Send for UiContainer
impl Sync for UiContainer
impl Unpin for UiContainer
impl UnwindSafe for UiContainer
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