pub struct CustomField {
pub name: Option<String>,
pub value: Option<String>,
}Expand description
Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.
This type is not used in any activity, and only used as part of another schema.
Fields§
§name: Option<String>Name is the field name.
value: Option<String>Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.
Trait Implementations§
Source§impl Clone for CustomField
impl Clone for CustomField
Source§fn clone(&self) -> CustomField
fn clone(&self) -> CustomField
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 CustomField
impl Debug for CustomField
Source§impl Default for CustomField
impl Default for CustomField
Source§fn default() -> CustomField
fn default() -> CustomField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomField
impl<'de> Deserialize<'de> for CustomField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CustomField
impl Serialize for CustomField
impl Part for CustomField
Auto Trait Implementations§
impl Freeze for CustomField
impl RefUnwindSafe for CustomField
impl Send for CustomField
impl Sync for CustomField
impl Unpin for CustomField
impl UnwindSafe for CustomField
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