Type Definition rocket::data::Transformed [−][src]
pub type Transformed<'a, T> = Transform<Outcome<<T as FromData<'a>>::Owned, <T as FromData<'a>>::Error>, Outcome<&'a <T as FromData<'a>>::Borrowed, <T as FromData<'a>>::Error>>;Expand description
Type alias to the outcome input type of FromData::from_data.
This is a hairy type, but the gist is that this is a Transform where,
for a given T: FromData:
-
The
Ownedvariant is anOutcomewhoseSuccessvalue is of typeFromData::Owned. -
The
Borrowedvariant is anOutcomewhoseSuccessvalue is a borrow of typeFromData::Borrowed. -
In either case, the
Outcome’sFailurevariant is a value of typeFromData::Error.