diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-02 20:23:33 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-02 20:23:33 +0100 |
commit | 0d667a30301bec47c03314ff0e449a220ad3b913 (patch) | |
tree | b3f5ccbbe5e5a615fc278900328bbcaccc9d8c6f /src/imap/response.rs | |
parent | 9a8d4c651e5993f09f54cf7c1eacf7a4839ea9db (diff) | |
download | aerogramme-0d667a30301bec47c03314ff0e449a220ad3b913.tar.gz aerogramme-0d667a30301bec47c03314ff0e449a220ad3b913.zip |
compile with imap-flow
Diffstat (limited to 'src/imap/response.rs')
-rw-r--r-- | src/imap/response.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imap/response.rs b/src/imap/response.rs index 012c8ed..d20e58e 100644 --- a/src/imap/response.rs +++ b/src/imap/response.rs @@ -47,11 +47,13 @@ impl<'a> ResponseBuilder<'a> { self } + #[allow(dead_code)] pub fn info(mut self, status: Status<'a>) -> Self { self.body.push(Body::Status(status)); self } + #[allow(dead_code)] pub fn many_info(mut self, status: Vec<Status<'a>>) -> Self { for d in status.into_iter() { self = self.info(d); @@ -87,8 +89,8 @@ impl<'a> ResponseBuilder<'a> { } pub struct Response<'a> { - body: Vec<Body<'a>>, - completion: Status<'a>, + pub body: Vec<Body<'a>>, + pub completion: Status<'a>, } impl<'a> Response<'a> { |