job_result.rs (658B)
1 use crate::{RadrootsNostrEventPtr, job::JobPaymentRequest, job_request::RadrootsJobInput}; 2 3 #[cfg(not(feature = "std"))] 4 use alloc::{string::String, vec::Vec}; 5 6 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))] 7 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 8 #[derive(Clone, Debug, PartialEq, Eq)] 9 pub struct RadrootsJobResult { 10 pub kind: u16, 11 pub request_event: RadrootsNostrEventPtr, 12 pub request_json: Option<String>, 13 pub inputs: Vec<RadrootsJobInput>, 14 pub customer_pubkey: Option<String>, 15 pub payment: Option<JobPaymentRequest>, 16 pub content: Option<String>, 17 pub encrypted: bool, 18 }