pub struct FormData { /* private fields */ }Expand description
Contains arbitrary form data in a serialized form.
Implementations§
Source§impl FormData
impl FormData
pub fn serialize<F>(form_data: &F) -> Selfwhere
F: Serialize,
pub fn deserialize<F>(&self) -> Fwhere
F: DeserializeOwned,
Source§impl FormData
impl FormData
pub fn with_context(qs: &QueryString) -> FormData
pub fn values<T: DeserializeOwned + PartialEq>(&self) -> Signal<Option<T>>
pub fn set_values<T: Serialize>(&self, values: T)
pub fn raw_value(&self) -> Signal<String>
pub fn set_raw_value<S: Into<String>>(&self, value: S)
pub fn value<T: FromStr>(&self) -> Signal<Result<T, T::Err>>
pub fn set_value<T: ToString>(&self, value: T)
pub fn partial(&self, head: &QueryString) -> FormData
pub fn len(&self) -> Option<usize>
Trait Implementations§
impl StructuralPartialEq for FormData
Auto Trait Implementations§
impl Freeze for FormData
impl RefUnwindSafe for FormData
impl Send for FormData
impl Sync for FormData
impl Unpin for FormData
impl UnwindSafe for FormData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more