pub struct CreateSpan(/* private fields */);Expand description
The request builder for TraceService::create_span calls.
§Example
use builder::trace_service::CreateSpan;
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> CreateSpan {
// ... details omitted ...
}Implementations§
Source§impl CreateSpan
impl CreateSpan
Sourcepub fn with_request<V: Into<Span>>(self, v: V) -> Self
pub fn with_request<V: Into<Span>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub fn set_name<T: Into<String>>(self, v: T) -> Self
pub fn set_name<T: Into<String>>(self, v: T) -> Self
Sets the value of name.
This is a required field for requests.
Sourcepub fn set_span_id<T: Into<String>>(self, v: T) -> Self
pub fn set_span_id<T: Into<String>>(self, v: T) -> Self
Sets the value of span_id.
This is a required field for requests.
Sourcepub fn set_parent_span_id<T: Into<String>>(self, v: T) -> Self
pub fn set_parent_span_id<T: Into<String>>(self, v: T) -> Self
Sets the value of parent_span_id.
Sourcepub fn set_display_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_display_name<T>(self, v: T) -> Selfwhere
T: Into<TruncatableString>,
Sets the value of display_name.
This is a required field for requests.
Sourcepub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
pub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<TruncatableString>,
Sets or clears the value of display_name.
This is a required field for requests.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
This is a required field for requests.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
This is a required field for requests.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
This is a required field for requests.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
This is a required field for requests.
Sourcepub fn set_attributes<T>(self, v: T) -> Selfwhere
T: Into<Attributes>,
pub fn set_attributes<T>(self, v: T) -> Selfwhere
T: Into<Attributes>,
Sets the value of attributes.
Sourcepub fn set_or_clear_attributes<T>(self, v: Option<T>) -> Selfwhere
T: Into<Attributes>,
pub fn set_or_clear_attributes<T>(self, v: Option<T>) -> Selfwhere
T: Into<Attributes>,
Sets or clears the value of attributes.
Sourcepub fn set_stack_trace<T>(self, v: T) -> Selfwhere
T: Into<StackTrace>,
pub fn set_stack_trace<T>(self, v: T) -> Selfwhere
T: Into<StackTrace>,
Sets the value of stack_trace.
Sourcepub fn set_or_clear_stack_trace<T>(self, v: Option<T>) -> Selfwhere
T: Into<StackTrace>,
pub fn set_or_clear_stack_trace<T>(self, v: Option<T>) -> Selfwhere
T: Into<StackTrace>,
Sets or clears the value of stack_trace.
Sourcepub fn set_time_events<T>(self, v: T) -> Selfwhere
T: Into<TimeEvents>,
pub fn set_time_events<T>(self, v: T) -> Selfwhere
T: Into<TimeEvents>,
Sets the value of time_events.
Sourcepub fn set_or_clear_time_events<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeEvents>,
pub fn set_or_clear_time_events<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeEvents>,
Sets or clears the value of time_events.
Sourcepub fn set_or_clear_links<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_links<T>(self, v: Option<T>) -> Self
Sets or clears the value of links.
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sets the value of status.
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
Sourcepub fn set_same_process_as_parent_span<T>(self, v: T) -> Self
pub fn set_same_process_as_parent_span<T>(self, v: T) -> Self
Sets the value of same_process_as_parent_span.
Sourcepub fn set_or_clear_same_process_as_parent_span<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_same_process_as_parent_span<T>(self, v: Option<T>) -> Self
Sets or clears the value of same_process_as_parent_span.
Sourcepub fn set_child_span_count<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_child_span_count<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of child_span_count.
Sourcepub fn set_or_clear_child_span_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_child_span_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of child_span_count.
Sourcepub fn set_span_kind<T: Into<SpanKind>>(self, v: T) -> Self
pub fn set_span_kind<T: Into<SpanKind>>(self, v: T) -> Self
Sets the value of span_kind.
Trait Implementations§
Source§impl Clone for CreateSpan
impl Clone for CreateSpan
Source§fn clone(&self) -> CreateSpan
fn clone(&self) -> CreateSpan
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateSpan
impl !RefUnwindSafe for CreateSpan
impl Send for CreateSpan
impl Sync for CreateSpan
impl Unpin for CreateSpan
impl !UnwindSafe for CreateSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.