lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

job_result.rs (711B)


      1 use crate::{
      2     social::{job::JobPaymentRequest, job_request::JobInput},
      3     tag::EventPtr,
      4 };
      5 
      6 #[cfg(not(feature = "std"))]
      7 use alloc::{string::String, vec::Vec};
      8 
      9 #[cfg_attr(all(test, feature = "std"), derive(dto_bindgen::Dto))]
     10 #[cfg_attr(all(test, feature = "std"), dto(export))]
     11 #[cfg_attr(
     12     any(feature = "serde", test),
     13     derive(serde::Serialize, serde::Deserialize)
     14 )]
     15 #[derive(Clone, Debug, PartialEq, Eq)]
     16 pub struct JobResult {
     17     pub kind: u16,
     18     pub request_event: EventPtr,
     19     pub request_json: Option<String>,
     20     pub inputs: Vec<JobInput>,
     21     pub customer_pubkey: Option<String>,
     22     pub payment: Option<JobPaymentRequest>,
     23     pub content: Option<String>,
     24     pub encrypted: bool,
     25 }