26 lines
394 B
Rust
26 lines
394 B
Rust
use std::str::FromStr;
|
|
|
|
pub enum Response {
|
|
Capabilities(Vec<Capability>),
|
|
Done {
|
|
tag: RequestId,
|
|
status: Status,
|
|
code: Option<ResponseCode>,
|
|
information: Option<String>,
|
|
},
|
|
}
|
|
|
|
pub enum Capability {
|
|
Imap4rev1,
|
|
Auth(String),
|
|
Atom(String),
|
|
}
|
|
|
|
pub struct RequestId(pub String);
|
|
|
|
pub enum Status {
|
|
Ok,
|
|
No,
|
|
}
|
|
|
|
pub enum ResponseCode {}
|