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 duplicate 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
impl Eq for TimestampServer
impl StructuralPartialEq for TimestampServer
Auto Trait Implementations§
impl Freeze for TimestampServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more