pub struct AuthorityContactsBuilder { /* private fields */ }Expand description
Builder for AuthorityContacts.
Implementations§
Source§impl AuthorityContactsBuilder
impl AuthorityContactsBuilder
Sourcepub fn build(&self) -> Result<AuthorityContacts, ConfigBuildError>
pub fn build(&self) -> Result<AuthorityContacts, ConfigBuildError>
Source§impl AuthorityContactsBuilder
impl AuthorityContactsBuilder
Sourcepub fn v3idents(&mut self) -> &mut Vec<RsaIdentity>
pub fn v3idents(&mut self) -> &mut Vec<RsaIdentity>
Access the being-built list (resolving default)
If the field has not yet been set or accessed, the default list will be constructed and a mutable reference to the now-defaulted list of builders will be returned.
Sourcepub fn set_v3idents(&mut self, list: Vec<RsaIdentity>)
pub fn set_v3idents(&mut self, list: Vec<RsaIdentity>)
Set the whole list (overriding the default)
Sourcepub fn opt_v3idents(&self) -> &Option<Vec<RsaIdentity>>
pub fn opt_v3idents(&self) -> &Option<Vec<RsaIdentity>>
Inspect the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &None is returned.
Sourcepub fn opt_v3idents_mut(&mut self) -> &mut Option<Vec<RsaIdentity>>
pub fn opt_v3idents_mut(&mut self) -> &mut Option<Vec<RsaIdentity>>
Mutably access the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &mut None is returned.
Sourcepub fn uploads(&mut self) -> &mut Vec<Vec<SocketAddr>>
pub fn uploads(&mut self) -> &mut Vec<Vec<SocketAddr>>
Access the being-built list (resolving default)
If the field has not yet been set or accessed, the default list will be constructed and a mutable reference to the now-defaulted list of builders will be returned.
Sourcepub fn set_uploads(&mut self, list: Vec<Vec<SocketAddr>>)
pub fn set_uploads(&mut self, list: Vec<Vec<SocketAddr>>)
Set the whole list (overriding the default)
Sourcepub fn opt_uploads(&self) -> &Option<Vec<Vec<SocketAddr>>>
pub fn opt_uploads(&self) -> &Option<Vec<Vec<SocketAddr>>>
Inspect the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &None is returned.
Sourcepub fn opt_uploads_mut(&mut self) -> &mut Option<Vec<Vec<SocketAddr>>>
pub fn opt_uploads_mut(&mut self) -> &mut Option<Vec<Vec<SocketAddr>>>
Mutably access the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &mut None is returned.
Sourcepub fn downloads(&mut self) -> &mut Vec<Vec<SocketAddr>>
pub fn downloads(&mut self) -> &mut Vec<Vec<SocketAddr>>
Access the being-built list (resolving default)
If the field has not yet been set or accessed, the default list will be constructed and a mutable reference to the now-defaulted list of builders will be returned.
Sourcepub fn set_downloads(&mut self, list: Vec<Vec<SocketAddr>>)
pub fn set_downloads(&mut self, list: Vec<Vec<SocketAddr>>)
Set the whole list (overriding the default)
Sourcepub fn opt_downloads(&self) -> &Option<Vec<Vec<SocketAddr>>>
pub fn opt_downloads(&self) -> &Option<Vec<Vec<SocketAddr>>>
Inspect the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &None is returned.
Sourcepub fn opt_downloads_mut(&mut self) -> &mut Option<Vec<Vec<SocketAddr>>>
pub fn opt_downloads_mut(&mut self) -> &mut Option<Vec<Vec<SocketAddr>>>
Mutably access the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &mut None is returned.
Sourcepub fn votes(&mut self) -> &mut Vec<Vec<SocketAddr>>
pub fn votes(&mut self) -> &mut Vec<Vec<SocketAddr>>
Access the being-built list (resolving default)
If the field has not yet been set or accessed, the default list will be constructed and a mutable reference to the now-defaulted list of builders will be returned.
Sourcepub fn set_votes(&mut self, list: Vec<Vec<SocketAddr>>)
pub fn set_votes(&mut self, list: Vec<Vec<SocketAddr>>)
Set the whole list (overriding the default)
Sourcepub fn opt_votes(&self) -> &Option<Vec<Vec<SocketAddr>>>
pub fn opt_votes(&self) -> &Option<Vec<Vec<SocketAddr>>>
Inspect the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &None is returned.
Sourcepub fn opt_votes_mut(&mut self) -> &mut Option<Vec<Vec<SocketAddr>>>
pub fn opt_votes_mut(&mut self) -> &mut Option<Vec<Vec<SocketAddr>>>
Mutably access the being-built list (with default unresolved)
If the list has not yet been set, or accessed, &mut None is returned.
Trait Implementations§
Source§impl Builder for AuthorityContactsBuilder
impl Builder for AuthorityContactsBuilder
Source§type Built = AuthorityContacts
type Built = AuthorityContacts
Source§fn build(&self) -> Result<AuthorityContacts, ConfigBuildError>
fn build(&self) -> Result<AuthorityContacts, ConfigBuildError>
Built Read moreSource§impl Clone for AuthorityContactsBuilder
impl Clone for AuthorityContactsBuilder
Source§fn clone(&self) -> AuthorityContactsBuilder
fn clone(&self) -> AuthorityContactsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuthorityContactsBuilder
impl Debug for AuthorityContactsBuilder
Source§impl Default for AuthorityContactsBuilder
impl Default for AuthorityContactsBuilder
Source§impl<'de> Deserialize<'de> for AuthorityContactsBuilder
impl<'de> Deserialize<'de> for AuthorityContactsBuilder
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>,
Auto Trait Implementations§
impl Freeze for AuthorityContactsBuilder
impl RefUnwindSafe for AuthorityContactsBuilder
impl Send for AuthorityContactsBuilder
impl Sync for AuthorityContactsBuilder
impl Unpin for AuthorityContactsBuilder
impl UnwindSafe for AuthorityContactsBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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