pub struct Target {
pub id: String,
pub path: PathBuf,
pub project: String,
pub exporter: String,
pub mode: String,
pub apply: bool,
pub validate: Option<String>,
pub reload: Option<String>,
pub require_approval: bool,
}Expand description
One [[target]] in the node’s config. Everything executable is here, on
this host, written by the operator. Nothing the hub sends can add to it.
Fields§
§id: String§path: PathBuf§project: String§exporter: String§mode: String§apply: boolObserve until deliberately flipped.
validate: Option<String>§reload: Option<String>§require_approval: boolRefuse any push that does not carry the hub’s signed approval of exactly these bytes (Phase 37). Set here, on the host, so a hub bug or a hub policy change cannot turn it off.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
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 StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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