pub struct MirrorAdvertiseView {
pub urls: Vec<String>,
pub operator_override: Option<Vec<String>>,
pub state: MirrorAdvertiseState,
}Expand description
The mirror advertise-URL view: embedded in ConfigResult, and embedded in turn in
SetMirrorAdvertiseUrlsResult.
Not the WHOLE answer to control.config.setMirrorAdvertiseUrls — see
SetMirrorAdvertiseUrlsResult::requires_restart for the reason a bare view is not enough
there.
Fields§
§urls: Vec<String>The URLs this node will actually publish in its NEXT mirror-coin advertisement. Empty in
every state but MirrorAdvertiseState::AdvertisingOverride and
MirrorAdvertiseState::AdvertisingDerived — see Self::state for why an empty list
alone never says why.
operator_override: Option<Vec<String>>The operator’s own persisted override, verbatim, or None when unset. Answers “is this
node advertising something the operator chose, or something it derived” without a caller
having to infer it from Self::state alone: Some even in
MirrorAdvertiseState::Off, where the override exists but nothing in it is publishable.
state: MirrorAdvertiseStateWhich of dig-node#562’s six outcomes produced Self::urls this pass.
Trait Implementations§
Source§impl Clone for MirrorAdvertiseView
impl Clone for MirrorAdvertiseView
Source§fn clone(&self) -> MirrorAdvertiseView
fn clone(&self) -> MirrorAdvertiseView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more