Struct quartz_cli::history::RequestHistoryEntry
source · pub struct RequestHistoryEntry {
pub handle: String,
pub endpoint: Option<Endpoint>,
pub context: Option<Context>,
pub time: u64,
pub duration: u64,
pub status: Option<u16>,
pub body: String,
}Fields§
§handle: String§endpoint: Option<Endpoint>§context: Option<Context>§time: u64§duration: u64§status: Option<u16>§body: StringImplementations§
source§impl RequestHistoryEntry
impl RequestHistoryEntry
pub fn new() -> Self
pub fn from_timestemp(timestemp: u64) -> Option<Self>
pub fn format_time(&self, format: &str) -> Option<String>
pub fn handle(&mut self, handle: String) -> &mut Self
pub fn endpoint(&mut self, endpoint: &Endpoint) -> &mut Self
pub fn context(&mut self, context: &Context) -> &mut Self
pub fn duration(&mut self, duration: u64) -> &mut Self
pub fn status(&mut self, status: u16) -> &mut Self
pub fn body(&mut self, bytes: &[u8]) -> &mut Self
pub fn file_path(&self) -> PathBuf
Trait Implementations§
source§impl Default for RequestHistoryEntry
impl Default for RequestHistoryEntry
source§fn default() -> RequestHistoryEntry
fn default() -> RequestHistoryEntry
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RequestHistoryEntry
impl<'de> Deserialize<'de> for RequestHistoryEntry
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
Auto Trait Implementations§
impl RefUnwindSafe for RequestHistoryEntry
impl Send for RequestHistoryEntry
impl Sync for RequestHistoryEntry
impl Unpin for RequestHistoryEntry
impl UnwindSafe for RequestHistoryEntry
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