pub struct FirestoreDynamicStruct {
pub fields: BTreeMap<String, Value>,
}Expand description
A dynamically-typed structure used to represent complex, nested data often found in Firestore’s explain metrics or other metadata.
It holds fields as a BTreeMap of string keys to gcloud_sdk::prost_types::Value,
which is a generic protobuf value type capable of holding various data types.
Fields§
§fields: BTreeMap<String, Value>A map of field names to their prost_types::Value representations.
Implementations§
Source§impl FirestoreDynamicStruct
impl FirestoreDynamicStruct
Sourcepub fn new(fields: BTreeMap<String, Value>) -> Self
pub fn new(fields: BTreeMap<String, Value>) -> Self
Creates a new FirestoreDynamicStruct from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn fields(&mut self, value: BTreeMap<String, Value>) -> &mut Self
pub fn fields(&mut self, value: BTreeMap<String, Value>) -> &mut Self
Sets fields to value.
A map of field names to their prost_types::Value representations.
Sourcepub fn with_fields(self, value: BTreeMap<String, Value>) -> Self
pub fn with_fields(self, value: BTreeMap<String, Value>) -> Self
Returns self with fields set to value.
A map of field names to their prost_types::Value representations.
Trait Implementations§
Source§impl Clone for FirestoreDynamicStruct
impl Clone for FirestoreDynamicStruct
Source§impl Debug for FirestoreDynamicStruct
impl Debug for FirestoreDynamicStruct
Source§impl From<FirestoreDynamicStructInit> for FirestoreDynamicStruct
impl From<FirestoreDynamicStructInit> for FirestoreDynamicStruct
Source§fn from(value: FirestoreDynamicStructInit) -> Self
fn from(value: FirestoreDynamicStructInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FirestoreDynamicStruct
impl PartialEq for FirestoreDynamicStruct
impl StructuralPartialEq for FirestoreDynamicStruct
Auto Trait Implementations§
impl Freeze for FirestoreDynamicStruct
impl RefUnwindSafe for FirestoreDynamicStruct
impl Send for FirestoreDynamicStruct
impl Sync for FirestoreDynamicStruct
impl Unpin for FirestoreDynamicStruct
impl UnsafeUnpin for FirestoreDynamicStruct
impl UnwindSafe for FirestoreDynamicStruct
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