pub enum Action {
Push {
target: String,
sha256: String,
content_b64: String,
approval: Option<SignedApproval>,
},
Upload {
target: String,
},
}Expand description
Something the hub asks a node to do.
Variants§
Push
Write these bytes to a push target whose apply is true. sha256 is
what the node must recompute and compare before it writes anything.
Fields
§
approval: Option<SignedApproval>The hub’s signed statement that a human approved exactly these bytes for this node and target (Phase 37). Absent when the node needs none.
Upload
Send the content of a pull target once. Requested by a human.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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