pub struct AuthorityContactsBuilder {
v3idents: Option<Vec<RsaIdentity>>,
uploads: Option<Vec<Vec<SocketAddr>>>,
downloads: Option<Vec<Vec<SocketAddr>>>,
votes: Option<Vec<Vec<SocketAddr>>>,
}Expand description
A builder to create an instance of AuthorityContacts.
Fields§
§v3idents: Option<Vec<RsaIdentity>>In-progress value for v3idents.
uploads: Option<Vec<Vec<SocketAddr>>>In-progress value for uploads.
downloads: Option<Vec<Vec<SocketAddr>>>In-progress value for downloads.
votes: Option<Vec<Vec<SocketAddr>>>In-progress value for votes.
Implementations§
Source§impl AuthorityContactsBuilder
impl AuthorityContactsBuilder
Sourcepub fn build(&self) -> Result<AuthorityContacts, ConfigBuildError>
pub fn build(&self) -> Result<AuthorityContacts, ConfigBuildError>
Try to construct a new AuthorityContacts from the fields set in this builder.
Return an error if any required field is missing, or is set to something invalid.
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 (const: unstable) · 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§fn default() -> AuthorityContactsBuilder
fn default() -> 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>,
Source§impl ExtendBuilder for AuthorityContactsBuilder
impl ExtendBuilder for AuthorityContactsBuilder
Source§fn extend_from(&mut self, other: Self, strategy: ExtendStrategy)
fn extend_from(&mut self, other: Self, strategy: ExtendStrategy)
Auto Trait Implementations§
impl Freeze for AuthorityContactsBuilder
impl RefUnwindSafe for AuthorityContactsBuilder
impl Send for AuthorityContactsBuilder
impl Sync for AuthorityContactsBuilder
impl Unpin for AuthorityContactsBuilder
impl UnsafeUnpin 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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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