lib

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

job_feedback.rs (643B)


      1 use crate::{
      2     RadrootsNostrEventPtr,
      3     job::{JobFeedbackStatus, JobPaymentRequest},
      4 };
      5 
      6 #[cfg(not(feature = "std"))]
      7 use alloc::string::String;
      8 
      9 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))]
     10 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
     11 #[derive(Clone, Debug, PartialEq, Eq)]
     12 pub struct RadrootsJobFeedback {
     13     pub kind: u16,
     14     pub status: JobFeedbackStatus,
     15     pub extra_info: Option<String>,
     16     pub request_event: RadrootsNostrEventPtr,
     17     pub customer_pubkey: Option<String>,
     18     pub payment: Option<JobPaymentRequest>,
     19     pub content: Option<String>,
     20     pub encrypted: bool,
     21 }