pub struct ConfigurationBuilder {
configuration: Configuration,
}
Fields§
§configuration: Configuration
Implementations§
source§impl ConfigurationBuilder
impl ConfigurationBuilder
pub fn with_port(self, port: u16) -> Self
pub fn with_result_dir<P: AsRef<Path>>(self, path: P) -> Self
pub fn with_tmp_result_dir(self, tmp: &TempDir) -> Self
pub fn with_voting_tools_params(self, voting_tools: VotingToolsParams) -> Self
pub fn build(self) -> Configuration
Trait Implementations§
source§impl Clone for ConfigurationBuilder
impl Clone for ConfigurationBuilder
source§fn clone(&self) -> ConfigurationBuilder
fn clone(&self) -> ConfigurationBuilder
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 ConfigurationBuilder
impl Debug for ConfigurationBuilder
source§impl Default for ConfigurationBuilder
impl Default for ConfigurationBuilder
source§fn default() -> ConfigurationBuilder
fn default() -> ConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConfigurationBuilder
impl<'de> Deserialize<'de> for ConfigurationBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ConfigurationBuilder> for ConfigurationBuilder
impl PartialEq<ConfigurationBuilder> for ConfigurationBuilder
source§fn eq(&self, other: &ConfigurationBuilder) -> bool
fn eq(&self, other: &ConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConfigurationBuilder
impl Serialize for ConfigurationBuilder
impl Eq for ConfigurationBuilder
impl StructuralEq for ConfigurationBuilder
impl StructuralPartialEq for ConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ConfigurationBuilder
impl Send for ConfigurationBuilder
impl Sync for ConfigurationBuilder
impl Unpin for ConfigurationBuilder
impl UnwindSafe for ConfigurationBuilder
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.