Skip to main content

Accepted

Struct Accepted 

Source
#[non_exhaustive]
pub struct Accepted<T, H> { pub content: T, pub discarded: Vec<H>, }
Expand description

Content that parsed and satisfied its declaration.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§content: T

The declared struct.

§discarded: Vec<H>

The handles of uploads that a later upload for the same field replaced, which the caller should remove.

Trait Implementations§

Source§

impl<T, H> Debug for Accepted<T, H>

Shows the number of discarded handles only, since the content holds submitted values.

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T, H> Forget for Accepted<T, H>

§

impl<T, H> Freeze for Accepted<T, H>
where T: Freeze, Vec<H>: Freeze,

§

impl<T, H> RefUnwindSafe for Accepted<T, H>

§

impl<T, H> Send for Accepted<T, H>
where T: Send, Vec<H>: Send,

§

impl<T, H> Sync for Accepted<T, H>
where T: Sync, Vec<H>: Sync,

§

impl<T, H> Unpin for Accepted<T, H>
where T: Unpin, Vec<H>: Unpin,

§

impl<T, H> UnsafeUnpin for Accepted<T, H>
where T: UnsafeUnpin, Vec<H>: UnsafeUnpin,

§

impl<T, H> UnwindSafe for Accepted<T, H>
where T: UnwindSafe, Vec<H>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.