pub struct SamplyProfileParams {
pub ordinal: usize,
pub duration_secs: u64,
}Fields§
§ordinal: usizeIn a multihost pipeline, the ordinal of the pipeline to sample.
duration_secs: u64The number of seconds to sample for the profile, from 1 to 300.
Implementations§
Source§impl SamplyProfileParams
impl SamplyProfileParams
Sourcepub const MAX_DURATION_SECS: u64 = 300
pub const MAX_DURATION_SECS: u64 = 300
The longest profile a caller can request, in seconds.
Trait Implementations§
Source§impl Debug for SamplyProfileParams
impl Debug for SamplyProfileParams
Source§impl Default for SamplyProfileParams
Default query parameters for POST of a pipeline samply profile.
impl Default for SamplyProfileParams
Default query parameters for POST of a pipeline samply profile.
Source§impl<'de> Deserialize<'de> for SamplyProfileParamswhere
SamplyProfileParams: Default,
impl<'de> Deserialize<'de> for SamplyProfileParamswhere
SamplyProfileParams: Default,
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 IntoParams for SamplyProfileParams
impl IntoParams for SamplyProfileParams
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Source§impl Serialize for SamplyProfileParams
impl Serialize for SamplyProfileParams
Auto Trait Implementations§
impl Forget for SamplyProfileParams
impl Freeze for SamplyProfileParams
impl Move for SamplyProfileParams
impl RefUnwindSafe for SamplyProfileParams
impl Send for SamplyProfileParams
impl Sync for SamplyProfileParams
impl Unpin for SamplyProfileParams
impl UnsafeUnpin for SamplyProfileParams
impl UnwindSafe for SamplyProfileParams
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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