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
Owned
variant is anOutcome
whoseSuccess
value is of typeFromData::Owned
. -
The
Borrowed
variant is anOutcome
whoseSuccess
value is a borrow of typeFromData::Borrowed
. -
In either case, the
Outcome
’sFailure
variant is a value of typeFromData::Error
.