TraceListBuilder

Struct TraceListBuilder 

Source
pub struct TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with call().

Implementations§

Source§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S: State> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

Source

pub async fn call(self) -> Result<Traces, Error<TraceListError>>
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn configuration( self, value: &'f1 Configuration, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetConfiguration<S>>
where S::Configuration: IsUnset,

Required.

Source

pub fn page( self, value: i32, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetPage<S>>
where S::Page: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_page( self, value: Option<i32>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetPage<S>>
where S::Page: IsUnset,

Optional (Some / Option setters).

Source

pub fn limit( self, value: i32, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLimit<S>>
where S::Limit: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_limit( self, value: Option<i32>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLimit<S>>
where S::Limit: IsUnset,

Optional (Some / Option setters).

Source

pub fn user_id( self, value: &'f2 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetUserId<S>>
where S::UserId: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_user_id( self, value: Option<&'f2 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetUserId<S>>
where S::UserId: IsUnset,

Optional (Some / Option setters).

Source

pub fn name( self, value: &'f3 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_name( self, value: Option<&'f3 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters).

Source

pub fn session_id( self, value: &'f4 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetSessionId<S>>
where S::SessionId: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_session_id( self, value: Option<&'f4 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetSessionId<S>>
where S::SessionId: IsUnset,

Optional (Some / Option setters).

Source

pub fn from_timestamp( self, value: String, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFromTimestamp<S>>
where S::FromTimestamp: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_from_timestamp( self, value: Option<String>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFromTimestamp<S>>
where S::FromTimestamp: IsUnset,

Optional (Some / Option setters).

Source

pub fn to_timestamp( self, value: String, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetToTimestamp<S>>
where S::ToTimestamp: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_to_timestamp( self, value: Option<String>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetToTimestamp<S>>
where S::ToTimestamp: IsUnset,

Optional (Some / Option setters).

Source

pub fn order_by( self, value: &'f5 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetOrderBy<S>>
where S::OrderBy: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_order_by( self, value: Option<&'f5 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetOrderBy<S>>
where S::OrderBy: IsUnset,

Optional (Some / Option setters).

Source

pub fn tags( self, value: Vec<String>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_tags( self, value: Option<Vec<String>>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters).

Source

pub fn version( self, value: &'f6 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetVersion<S>>
where S::Version: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_version( self, value: Option<&'f6 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetVersion<S>>
where S::Version: IsUnset,

Optional (Some / Option setters).

Source

pub fn release( self, value: &'f7 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetRelease<S>>
where S::Release: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_release( self, value: Option<&'f7 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetRelease<S>>
where S::Release: IsUnset,

Optional (Some / Option setters).

Source

pub fn environment( self, value: Vec<String>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetEnvironment<S>>
where S::Environment: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_environment( self, value: Option<Vec<String>>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetEnvironment<S>>
where S::Environment: IsUnset,

Optional (Some / Option setters).

Source

pub fn fields( self, value: &'f8 str, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFields<S>>
where S::Fields: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_fields( self, value: Option<&'f8 str>, ) -> TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFields<S>>
where S::Fields: IsUnset,

Optional (Some / Option setters).

Auto Trait Implementations§

§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Freeze for TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S = Empty> !RefUnwindSafe for TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Send for TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Sync for TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Unpin for TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

§

impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S = Empty> !UnwindSafe for TraceListBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,