pub struct GcloudObservabilityInvalidParametersError {
pub field: String,
pub error: String,
}Fields§
§field: StringThe parameter, named as the builders name it: google_project_id, log_id or
endpoint.
error: StringWhy it was refused.
Implementations§
Source§impl GcloudObservabilityInvalidParametersError
impl GcloudObservabilityInvalidParametersError
Sourcepub fn new(field: String, error: String) -> Self
pub fn new(field: String, error: String) -> Self
Creates a new GcloudObservabilityInvalidParametersError from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn field(&mut self, value: String) -> &mut Self
pub fn field(&mut self, value: String) -> &mut Self
Sets field to value.
The parameter, named as the builders name it: google_project_id, log_id or
endpoint.
Sourcepub fn with_field(self, value: String) -> Self
pub fn with_field(self, value: String) -> Self
Returns self with field set to value.
The parameter, named as the builders name it: google_project_id, log_id or
endpoint.
Sourcepub fn with_error(self, value: String) -> Self
pub fn with_error(self, value: String) -> Self
Returns self with error set to value.
Why it was refused.
Trait Implementations§
impl Eq for GcloudObservabilityInvalidParametersError
Source§impl Error for GcloudObservabilityInvalidParametersError
impl Error for GcloudObservabilityInvalidParametersError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<GcloudObservabilityInvalidParametersErrorInit> for GcloudObservabilityInvalidParametersError
impl From<GcloudObservabilityInvalidParametersErrorInit> for GcloudObservabilityInvalidParametersError
Source§fn from(value: GcloudObservabilityInvalidParametersErrorInit) -> Self
fn from(value: GcloudObservabilityInvalidParametersErrorInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for GcloudObservabilityInvalidParametersError
Auto Trait Implementations§
impl Forget for GcloudObservabilityInvalidParametersError
impl Freeze for GcloudObservabilityInvalidParametersError
impl Move for GcloudObservabilityInvalidParametersError
impl RefUnwindSafe for GcloudObservabilityInvalidParametersError
impl Send for GcloudObservabilityInvalidParametersError
impl Sync for GcloudObservabilityInvalidParametersError
impl Unpin for GcloudObservabilityInvalidParametersError
impl UnsafeUnpin for GcloudObservabilityInvalidParametersError
impl UnwindSafe for GcloudObservabilityInvalidParametersError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Wrap the input message
T in a tonic::Request