pub struct SetUpstreamResult {
pub upstream: String,
pub requires_restart: bool,
}Expand description
control.config.setUpstream — the persisted override + a restart hint.
Fields§
§upstream: StringThe normalized upstream that was persisted.
requires_restart: boolAlways true — the change takes effect on next node start.
Trait Implementations§
Source§impl Clone for SetUpstreamResult
impl Clone for SetUpstreamResult
Source§fn clone(&self) -> SetUpstreamResult
fn clone(&self) -> SetUpstreamResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetUpstreamResult
impl Debug for SetUpstreamResult
Source§impl<'de> Deserialize<'de> for SetUpstreamResult
impl<'de> Deserialize<'de> for SetUpstreamResult
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SetUpstreamResult
Source§impl PartialEq for SetUpstreamResult
impl PartialEq for SetUpstreamResult
Source§impl Serialize for SetUpstreamResult
impl Serialize for SetUpstreamResult
impl StructuralPartialEq for SetUpstreamResult
Auto Trait Implementations§
impl Freeze for SetUpstreamResult
impl RefUnwindSafe for SetUpstreamResult
impl Send for SetUpstreamResult
impl Sync for SetUpstreamResult
impl Unpin for SetUpstreamResult
impl UnsafeUnpin for SetUpstreamResult
impl UnwindSafe for SetUpstreamResult
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