Struct quartz_cli::history::HistoryEntry
source · pub struct HistoryEntry {
pub handle: String,
pub time: u64,
pub request: Request,
pub response: Response,
/* private fields */
}Fields§
§handle: String§time: u64§request: Request§response: ResponseImplementations§
source§impl HistoryEntry
impl HistoryEntry
pub fn new(handle: String, request: Request, response: Response) -> Self
pub fn from_timestemp(timestemp: u64) -> Option<Self>
pub fn date(&self) -> Option<String>
pub fn date_format<T>(&mut self, format: T)where T: Display + Into<Arc<str>>,
pub fn file_path(&self) -> PathBuf
pub fn field_as_string(&self, key: &str) -> Result<String, Error>
Trait Implementations§
source§impl Default for HistoryEntry
impl Default for HistoryEntry
source§impl<'de> Deserialize<'de> for HistoryEntry
impl<'de> Deserialize<'de> for HistoryEntry
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
source§impl Display for HistoryEntry
impl Display for HistoryEntry
Auto Trait Implementations§
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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