#[non_exhaustive]pub struct PatchTracesRequest {
pub project_id: String,
pub traces: Option<Traces>,
/* private fields */
}Expand description
The request message for the PatchTraces method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringRequired. ID of the Cloud project where the trace data is stored.
traces: Option<Traces>Required. The body of the message.
Implementations§
Source§impl PatchTracesRequest
impl PatchTracesRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
§Example
ⓘ
let x = PatchTracesRequest::new().set_project_id("example");Sourcepub fn set_traces<T>(self, v: T) -> Self
pub fn set_traces<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_traces<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_traces<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for PatchTracesRequest
impl Clone for PatchTracesRequest
Source§fn clone(&self) -> PatchTracesRequest
fn clone(&self) -> PatchTracesRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatchTracesRequest
impl Debug for PatchTracesRequest
Source§impl Default for PatchTracesRequest
impl Default for PatchTracesRequest
Source§fn default() -> PatchTracesRequest
fn default() -> PatchTracesRequest
Returns the “default value” for a type. Read more
Source§impl Message for PatchTracesRequest
impl Message for PatchTracesRequest
Source§impl PartialEq for PatchTracesRequest
impl PartialEq for PatchTracesRequest
impl StructuralPartialEq for PatchTracesRequest
Auto Trait Implementations§
impl Freeze for PatchTracesRequest
impl RefUnwindSafe for PatchTracesRequest
impl Send for PatchTracesRequest
impl Sync for PatchTracesRequest
impl Unpin for PatchTracesRequest
impl UnwindSafe for PatchTracesRequest
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