Enum wix::TimestampServer
source · pub enum TimestampServer {
Custom(String),
Comodo,
Verisign,
}
Expand description
The aliases for the URLs to different Microsoft Authenticode timestamp servers.
Variants§
Custom(String)
A URL to a timestamp server.
Comodo
The alias for the Comodo timestamp server.
Verisign
The alias for the Verisign timestamp server.
Implementations§
source§impl TimestampServer
impl TimestampServer
sourcepub fn url(&self) -> &str
pub fn url(&self) -> &str
Gets the URL of the timestamp server for an alias.
Examples
use std::str::FromStr;
use wix::TimestampServer;
assert_eq!(
TimestampServer::from_str("http://www.example.com").unwrap().url(),
"http://www.example.com"
);
assert_eq!(
TimestampServer::Comodo.url(),
"http://timestamp.comodoca.com/"
);
assert_eq!(
TimestampServer::Verisign.url(),
"http://timestamp.verisign.com/scripts/timstamp.dll"
);
Trait Implementations§
source§impl Clone for TimestampServer
impl Clone for TimestampServer
source§fn clone(&self) -> TimestampServer
fn clone(&self) -> TimestampServer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimestampServer
impl Debug for TimestampServer
source§impl Display for TimestampServer
impl Display for TimestampServer
source§impl FromStr for TimestampServer
impl FromStr for TimestampServer
source§impl PartialEq<TimestampServer> for TimestampServer
impl PartialEq<TimestampServer> for TimestampServer
source§fn eq(&self, other: &TimestampServer) -> bool
fn eq(&self, other: &TimestampServer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.