mirror of https://github.com/fafhrd91/actix-web
Make dev::Payload field of Payload public and add into_inner method
This commit is contained in:
parent
ffacabda76
commit
ab49f885d8
|
@ -43,11 +43,12 @@ use crate::request::HttpRequest;
|
||||||
/// );
|
/// );
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
pub struct Payload(crate::dev::Payload);
|
pub struct Payload(pub crate::dev::Payload);
|
||||||
|
|
||||||
impl From<Payload> for crate::dev::Payload {
|
impl Payload {
|
||||||
fn from(payload: Payload) -> Self {
|
/// Deconstruct to a inner value
|
||||||
payload.0
|
pub fn into_inner(self) -> crate::dev::Payload {
|
||||||
|
self.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue