pub struct PushScopeParams<'a> {
pub name: &'a str,
pub scope_type: ScopeType,
pub parent: Option<&'a ScopeHandle>,
pub attributes: ScopeAttributes,
pub data: Option<Json>,
pub metadata: Option<Json>,
pub input: Option<Json>,
pub timestamp: Option<DateTime<Utc>>,
}Expand description
Builder parameters for push_scope.
Fields§
§name: &'a strHuman-readable scope name recorded on emitted lifecycle events.
scope_type: ScopeTypeSemantic category for the new scope.
parent: Option<&'a ScopeHandle>Optional explicit parent scope.
attributes: ScopeAttributesScope attribute bitflags applied to the new scope.
data: Option<Json>Optional application payload stored on the scope handle.
metadata: Option<Json>Optional JSON metadata recorded on the emitted start event.
input: Option<Json>Optional JSON payload exported as the scope start event data.
timestamp: Option<DateTime<Utc>>Optional timestamp recorded on the emitted start event.
Implementations§
Source§impl<'a> PushScopeParams<'a>
impl<'a> PushScopeParams<'a>
Sourcepub fn builder() -> PushScopeParamsBuilder<'a, ((), (), (), (), (), (), (), ())>
pub fn builder() -> PushScopeParamsBuilder<'a, ((), (), (), (), (), (), (), ())>
Create a builder for building PushScopeParams.
On the builder, call .name(...), .scope_type(...), .parent(...)(optional), .attributes(...)(optional), .data(...)(optional), .metadata(...)(optional), .input(...)(optional), .timestamp(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PushScopeParams.
Auto Trait Implementations§
impl<'a> Freeze for PushScopeParams<'a>
impl<'a> RefUnwindSafe for PushScopeParams<'a>
impl<'a> Send for PushScopeParams<'a>
impl<'a> Sync for PushScopeParams<'a>
impl<'a> Unpin for PushScopeParams<'a>
impl<'a> UnsafeUnpin for PushScopeParams<'a>
impl<'a> UnwindSafe for PushScopeParams<'a>
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request