pub struct CTorServiceKeystoreConfigMapBuilder {
stores: Option<Vec<CTorServiceKeystoreConfigBuilder>>,
}
Expand description
Wrapper struct to help derive_builder find the right types and methods
This struct is not part of the configuration API. Refer to the containing structures for information on how to build the config.
Fields§
§stores: Option<Vec<CTorServiceKeystoreConfigBuilder>>
The list, as overridden
Implementations§
Source§impl CTorServiceKeystoreConfigMapBuilder
impl CTorServiceKeystoreConfigMapBuilder
Sourcepub fn build(
&self,
) -> Result<BTreeMap<HsNickname, CTorServiceKeystoreConfig>, ConfigBuildError>
pub fn build( &self, ) -> Result<BTreeMap<HsNickname, CTorServiceKeystoreConfig>, ConfigBuildError>
Resolve this list to a list of built items.
If the value is still the Default
,
a built-in default list will be built and returned;
otherwise each applicable item will be built,
and the results collected into a single built list.
Sourcefn default_list() -> Vec<CTorServiceKeystoreConfigBuilder>
fn default_list() -> Vec<CTorServiceKeystoreConfigBuilder>
The default list
Sourcepub fn access(&mut self) -> &mut Vec<CTorServiceKeystoreConfigBuilder>
pub fn access(&mut self) -> &mut Vec<CTorServiceKeystoreConfigBuilder>
Resolve the list to the default if necessary and then return &mut Vec
Sourcepub fn access_opt(&self) -> &Option<Vec<CTorServiceKeystoreConfigBuilder>>
pub fn access_opt(&self) -> &Option<Vec<CTorServiceKeystoreConfigBuilder>>
Resolve the list to the default if necessary and then return &mut Vec
Sourcepub fn access_opt_mut(
&mut self,
) -> &mut Option<Vec<CTorServiceKeystoreConfigBuilder>>
pub fn access_opt_mut( &mut self, ) -> &mut Option<Vec<CTorServiceKeystoreConfigBuilder>>
Resolve the list to the default if necessary and then return &mut Vec
Trait Implementations§
Source§impl Clone for CTorServiceKeystoreConfigMapBuilder
impl Clone for CTorServiceKeystoreConfigMapBuilder
Source§fn clone(&self) -> CTorServiceKeystoreConfigMapBuilder
fn clone(&self) -> CTorServiceKeystoreConfigMapBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for CTorServiceKeystoreConfigMapBuilder
impl<'de> Deserialize<'de> for CTorServiceKeystoreConfigMapBuilder
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>,
Source§impl From<CTorServiceKeystoreConfigMapBuilder> for BTreeMap<HsNickname, CTorServiceKeystoreConfigBuilder>
impl From<CTorServiceKeystoreConfigMapBuilder> for BTreeMap<HsNickname, CTorServiceKeystoreConfigBuilder>
Source§fn from(
value: CTorServiceKeystoreConfigMapBuilder,
) -> BTreeMap<HsNickname, CTorServiceKeystoreConfigBuilder>
fn from( value: CTorServiceKeystoreConfigMapBuilder, ) -> BTreeMap<HsNickname, CTorServiceKeystoreConfigBuilder>
Convert our Builder representation of a set of C Tor service configs into the format that serde will serialize.
Note: This is a potentially lossy conversion, since the serialized format can’t represent partially-built configs without a nickname, or a collection of configs with duplicate nicknames.
Source§impl TryFrom<BTreeMap<HsNickname, CTorServiceKeystoreConfigBuilder>> for CTorServiceKeystoreConfigMapBuilder
impl TryFrom<BTreeMap<HsNickname, CTorServiceKeystoreConfigBuilder>> for CTorServiceKeystoreConfigMapBuilder
Auto Trait Implementations§
impl Freeze for CTorServiceKeystoreConfigMapBuilder
impl RefUnwindSafe for CTorServiceKeystoreConfigMapBuilder
impl Send for CTorServiceKeystoreConfigMapBuilder
impl Sync for CTorServiceKeystoreConfigMapBuilder
impl Unpin for CTorServiceKeystoreConfigMapBuilder
impl UnwindSafe for CTorServiceKeystoreConfigMapBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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