pub enum RunExportFormat {
Csv,
Json,
}Expand description
Format for GET /api/runs/{id}/export – deliberately a local, HTTP-facing enum rather
than reusing bhtune_cli::args::ExportFormat directly: that type is clap-oriented
(ValueEnum) and has no Deserialize/ToSchema, matching this module’s own
DTO-decoupling convention (see the module doc comment). Converted to
bhtune_cli::args::ExportFormat at the one call site that needs it ([export_run]), so
the actual CSV/JSON serialization (bhtune_cli::commands::export::samples_to_bytes) is
implemented exactly once and the CLI’s bhtune export and this route can never disagree
about what a run’s export looks like.
Variants§
Trait Implementations§
Source§impl Clone for RunExportFormat
impl Clone for RunExportFormat
Source§fn clone(&self) -> RunExportFormat
fn clone(&self) -> RunExportFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for RunExportFormat
impl ComposeSchema for RunExportFormat
impl Copy for RunExportFormat
Source§impl Debug for RunExportFormat
impl Debug for RunExportFormat
Source§impl<'de> Deserialize<'de> for RunExportFormat
impl<'de> Deserialize<'de> for RunExportFormat
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 From<RunExportFormat> for ExportFormat
impl From<RunExportFormat> for ExportFormat
Source§fn from(format: RunExportFormat) -> Self
fn from(format: RunExportFormat) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RunExportFormat
impl RefUnwindSafe for RunExportFormat
impl Send for RunExportFormat
impl Sync for RunExportFormat
impl Unpin for RunExportFormat
impl UnsafeUnpin for RunExportFormat
impl UnwindSafe for RunExportFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].