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 for TimestampServer
impl PartialEq 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 ==
.impl Eq for TimestampServer
impl StructuralEq for TimestampServer
impl StructuralPartialEq for TimestampServer
Auto Trait Implementations§
impl RefUnwindSafe for TimestampServer
impl Send for TimestampServer
impl Sync for TimestampServer
impl Unpin for TimestampServer
impl UnwindSafe for TimestampServer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more