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 values<T: DeserializeOwned + PartialEq>( &self, qs: QueryString, ) -> Signal<Option<T>>
pub fn set_values<T: Serialize>(&self, qs: QueryString, values: T)
pub fn raw_value(&self, qs: QueryString) -> Signal<String>
pub fn set_raw_value<S: Into<String>>(&self, qs: QueryString, value: S)
pub fn value<T: FromStr>(&self, qs: QueryString) -> Signal<Result<T, T::Err>>
pub fn set_value<T: ToString>(&self, qs: QueryString, value: T)
pub fn len(&self, qs: QueryString) -> Option<usize>
Trait Implementations§
impl Copy for FormData
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