[][src]Type Definition rocket::data::Transformed

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>>;

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 an Outcome whose Success value is of type FromData::Owned.

  • The Borrowed variant is an Outcome whose Success value is a borrow of type FromData::Borrowed.

  • In either case, the Outcome's Failure variant is a value of type FromData::Error.