pub struct FirestoreDataConflictError {
pub public: FirestoreErrorPublicGenericDetails,
pub details: String,
}Expand description
Represents an error due to a data conflict.
This can occur, for example, if trying to create a document that already exists
or if an optimistic locking condition (e.g., based on update_time) is not met.
Fields§
§public: FirestoreErrorPublicGenericDetailsGeneric public details about the error.
details: StringSpecific details about the data conflict.
Implementations§
Source§impl FirestoreDataConflictError
impl FirestoreDataConflictError
pub fn new(public: FirestoreErrorPublicGenericDetails, details: String) -> Self
pub fn public(&mut self, value: FirestoreErrorPublicGenericDetails) -> &mut Self
pub fn with_public(self, value: FirestoreErrorPublicGenericDetails) -> Self
pub fn details(&mut self, value: String) -> &mut Self
pub fn with_details(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for FirestoreDataConflictError
impl Clone for FirestoreDataConflictError
Source§fn clone(&self) -> FirestoreDataConflictError
fn clone(&self) -> FirestoreDataConflictError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FirestoreDataConflictError
impl Debug for FirestoreDataConflictError
Source§impl Display for FirestoreDataConflictError
impl Display for FirestoreDataConflictError
Source§impl Error for FirestoreDataConflictError
impl Error for FirestoreDataConflictError
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<FirestoreDataConflictErrorInit> for FirestoreDataConflictError
impl From<FirestoreDataConflictErrorInit> for FirestoreDataConflictError
Source§fn from(value: FirestoreDataConflictErrorInit) -> Self
fn from(value: FirestoreDataConflictErrorInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FirestoreDataConflictError
impl RefUnwindSafe for FirestoreDataConflictError
impl Send for FirestoreDataConflictError
impl Sync for FirestoreDataConflictError
impl Unpin for FirestoreDataConflictError
impl UnsafeUnpin for FirestoreDataConflictError
impl UnwindSafe for FirestoreDataConflictError
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<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