#[non_exhaustive]pub struct CompoundBeacon {
pub constructors: Option<Vec<Constructor>>,
pub encrypted: Option<Vec<EncryptedPart>>,
pub name: Option<String>,
pub signed: Option<Vec<SignedPart>>,
pub split: Option<String>,
}
Expand description
The configuration for a Compound Beacon.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.constructors: Option<Vec<Constructor>>
The ordered list of constructors that may be used to create the Compound Beacon. Each constructor is checked, in order, to see if it can construct the beacon. The first constructor that can construct the beacon is used. If no constructor can construct the beacon, the Compound Beacon is not written to the item.
encrypted: Option<Vec<EncryptedPart>>
The list of Encrypted Parts that may be included in the compound beacon.
name: Option<String>
The name of the Compound Beacon.
signed: Option<Vec<SignedPart>>
The list of Signed Parts that may be included in the compound beacon.
split: Option<String>
The characters used to split parts of a compound beacon. The split character should be a character that does not appear in any Signed Part or Prefix used by the Compound Beacon.
Implementations§
Source§impl CompoundBeacon
impl CompoundBeacon
Sourcepub fn constructors(&self) -> &Option<Vec<Constructor>>
pub fn constructors(&self) -> &Option<Vec<Constructor>>
The ordered list of constructors that may be used to create the Compound Beacon. Each constructor is checked, in order, to see if it can construct the beacon. The first constructor that can construct the beacon is used. If no constructor can construct the beacon, the Compound Beacon is not written to the item.
Sourcepub fn encrypted(&self) -> &Option<Vec<EncryptedPart>>
pub fn encrypted(&self) -> &Option<Vec<EncryptedPart>>
The list of Encrypted Parts that may be included in the compound beacon.
Sourcepub fn signed(&self) -> &Option<Vec<SignedPart>>
pub fn signed(&self) -> &Option<Vec<SignedPart>>
The list of Signed Parts that may be included in the compound beacon.
Source§impl CompoundBeacon
impl CompoundBeacon
Sourcepub fn builder() -> CompoundBeaconBuilder
pub fn builder() -> CompoundBeaconBuilder
Creates a new builder-style object to manufacture CompoundBeacon
.
Trait Implementations§
Source§impl Clone for CompoundBeacon
impl Clone for CompoundBeacon
Source§fn clone(&self) -> CompoundBeacon
fn clone(&self) -> CompoundBeacon
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CompoundBeacon
impl Debug for CompoundBeacon
Source§impl PartialEq for CompoundBeacon
impl PartialEq for CompoundBeacon
impl StructuralPartialEq for CompoundBeacon
Auto Trait Implementations§
impl Freeze for CompoundBeacon
impl RefUnwindSafe for CompoundBeacon
impl Send for CompoundBeacon
impl Sync for CompoundBeacon
impl Unpin for CompoundBeacon
impl UnwindSafe for CompoundBeacon
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
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