-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
948cead
commit e080593
Showing
8 changed files
with
165 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ mod email; | |
mod error; | ||
mod http; | ||
mod ldap; | ||
mod types; | ||
pub mod types; | ||
|
||
pub use email::from_email; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,4 @@ | ||
pub mod candidate; | ||
pub mod pox; | ||
// mod soap; | ||
|
||
// pub use soap::SoapConfig; | ||
pub use pox::Autodiscover as PoxAutodiscover; | ||
use pox::Response as PoxResponse; | ||
|
||
pub enum ConfigResult { | ||
Ok(AutodiscoverResponse), | ||
Redirect(RedirectType), | ||
Error(Error), | ||
} | ||
|
||
impl ConfigResult { | ||
pub fn error<M: Into<String>>(message: M) -> Self { | ||
ConfigResult::Error(Error { | ||
message: message.into(), | ||
}) | ||
} | ||
} | ||
|
||
pub enum RedirectType { | ||
Url(String), | ||
Email(String), | ||
} | ||
|
||
pub struct Error { | ||
message: String, | ||
} | ||
|
||
impl Error { | ||
pub fn message(&self) -> &str { | ||
self.message.as_ref() | ||
} | ||
} | ||
|
||
#[derive(Debug)] | ||
pub enum AutodiscoverResponse { | ||
Pox(PoxResponse), | ||
} | ||
pub mod protocol; | ||
pub mod request; | ||
pub mod response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.