#[non_exhaustive]pub struct SignatureValidityPeriodBuilder { /* private fields */ }
Expand description
A builder for SignatureValidityPeriod
.
Implementations§
source§impl SignatureValidityPeriodBuilder
impl SignatureValidityPeriodBuilder
sourcepub fn value(self, input: i32) -> Self
pub fn value(self, input: i32) -> Self
The numerical value of the time unit for signature validity.
sourcepub fn set_value(self, input: Option<i32>) -> Self
pub fn set_value(self, input: Option<i32>) -> Self
The numerical value of the time unit for signature validity.
sourcepub fn get_value(&self) -> &Option<i32>
pub fn get_value(&self) -> &Option<i32>
The numerical value of the time unit for signature validity.
sourcepub fn type(self, input: ValidityType) -> Self
pub fn type(self, input: ValidityType) -> Self
The time unit for signature validity.
sourcepub fn set_type(self, input: Option<ValidityType>) -> Self
pub fn set_type(self, input: Option<ValidityType>) -> Self
The time unit for signature validity.
sourcepub fn get_type(&self) -> &Option<ValidityType>
pub fn get_type(&self) -> &Option<ValidityType>
The time unit for signature validity.
sourcepub fn build(self) -> SignatureValidityPeriod
pub fn build(self) -> SignatureValidityPeriod
Consumes the builder and constructs a SignatureValidityPeriod
.
Trait Implementations§
source§impl Clone for SignatureValidityPeriodBuilder
impl Clone for SignatureValidityPeriodBuilder
source§fn clone(&self) -> SignatureValidityPeriodBuilder
fn clone(&self) -> SignatureValidityPeriodBuilder
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 Default for SignatureValidityPeriodBuilder
impl Default for SignatureValidityPeriodBuilder
source§fn default() -> SignatureValidityPeriodBuilder
fn default() -> SignatureValidityPeriodBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SignatureValidityPeriodBuilder
impl PartialEq for SignatureValidityPeriodBuilder
source§fn eq(&self, other: &SignatureValidityPeriodBuilder) -> bool
fn eq(&self, other: &SignatureValidityPeriodBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SignatureValidityPeriodBuilder
Auto Trait Implementations§
impl Freeze for SignatureValidityPeriodBuilder
impl RefUnwindSafe for SignatureValidityPeriodBuilder
impl Send for SignatureValidityPeriodBuilder
impl Sync for SignatureValidityPeriodBuilder
impl Unpin for SignatureValidityPeriodBuilder
impl UnwindSafe for SignatureValidityPeriodBuilder
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> 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>
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 moreCreates a shared type from an unshared type.