pub struct NodeConfig {
pub interval_secs: Option<u32>,
pub targets: Vec<Target>,
pub approver: Option<String>,
pub automation_approver: Option<String>,
}Fields§
§interval_secs: Option<u32>Seconds between beats when the hub has nothing to say. 10 to 3600.
targets: Vec<Target>§approver: Option<String>The public key (hex) of the device whose signature this node accepts as a human’s approval (Phase 37.1). When set, a push that needs approval must carry a token signed by this key; the hub’s own key no longer counts, so a hub that has been taken over cannot approve its own pushes.
automation_approver: Option<String>The public key (hex) whose signature counts as a rule approval (R12): a token the hub’s
automation key signed for one operation, valid for minutes. It never satisfies
require_approval, which always needs a human or a device.
Implementations§
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§impl Debug for NodeConfig
impl Debug for NodeConfig
Source§impl Default for NodeConfig
impl Default for NodeConfig
Source§impl<'de> Deserialize<'de> for NodeConfig
impl<'de> Deserialize<'de> for NodeConfig
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
Source§impl PartialEq for NodeConfig
impl PartialEq for NodeConfig
Source§impl Serialize for NodeConfig
impl Serialize for NodeConfig
impl StructuralPartialEq for NodeConfig
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnsafeUnpin for NodeConfig
impl UnwindSafe for NodeConfig
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Mutably borrows from an owned value. Read more