#[repr(transparent)]pub struct Field(pub Text);Tuple Fields§
§0: TextTrait Implementations§
Source§impl CandidType for Field
impl CandidType for Field
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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 FieldTypeMeta for Field
impl FieldTypeMeta for Field
Source§const KIND: FieldKind = Self::__KIND
const KIND: FieldKind = Self::__KIND
Semantic field kind used for runtime planning and validation.
Source§const STORAGE_DECODE: FieldStorageDecode = Self::__STORAGE_DECODE
const STORAGE_DECODE: FieldStorageDecode = Self::__STORAGE_DECODE
Persisted decode contract used by row and payload decoding.
Source§const NESTED_FIELDS: &'static [FieldModel]
const NESTED_FIELDS: &'static [FieldModel]
Known nested fields for generated structured records.
Source§impl Ord for Field
impl Ord for Field
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd<Field> for Text
impl PartialOrd<Field> for Text
Source§impl PartialOrd<String> for Field
impl PartialOrd<String> for Field
Source§impl PartialOrd for Field
impl PartialOrd for Field
Source§impl PersistedStructuredFieldCodec for Field
impl PersistedStructuredFieldCodec for Field
Source§fn encode_persisted_structured_payload(&self) -> Result<Vec<u8>, InternalError>
fn encode_persisted_structured_payload(&self) -> Result<Vec<u8>, InternalError>
Encode this typed structured field into persisted structured payload bytes.
Source§fn decode_persisted_structured_payload(
bytes: &[u8],
) -> Result<Self, InternalError>
fn decode_persisted_structured_payload( bytes: &[u8], ) -> Result<Self, InternalError>
Decode this typed structured field from persisted structured payload bytes.
Source§impl RuntimeValueDecode for Field
impl RuntimeValueDecode for Field
fn from_value(value: &Value) -> Option<Self>
Source§impl RuntimeValueMeta for Field
impl RuntimeValueMeta for Field
fn kind() -> RuntimeValueKind
Source§impl SanitizeAuto for Field
impl SanitizeAuto for Field
fn sanitize_self(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl SanitizeCustom for Field
impl SanitizeCustom for Field
fn sanitize_custom(&mut self, _ctx: &mut dyn VisitorContext)
Source§impl ValidateAuto for Field
impl ValidateAuto for Field
fn validate_self(&self, ctx: &mut dyn VisitorContext)
Source§impl ValidateCustom for Field
impl ValidateCustom for Field
fn validate_custom(&self, _ctx: &mut dyn VisitorContext)
Source§impl Visitable for Field
impl Visitable for Field
fn drive(&self, visitor: &mut dyn VisitorCore)
fn drive_mut(&mut self, visitor: &mut dyn VisitorMutCore)
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> KeyValueCodec for Twhere
T: RuntimeValueDecode + RuntimeValueEncode,
impl<T> KeyValueCodec for Twhere
T: RuntimeValueDecode + RuntimeValueEncode,
fn to_key_value(&self) -> Value
fn from_key_value(value: &Value) -> Option<T>
Source§impl<T> PersistedFieldMetaCodec for T
impl<T> PersistedFieldMetaCodec for T
Source§fn encode_persisted_slot_payload_by_meta(
&self,
field_name: &'static str,
) -> Result<Vec<u8>, InternalError>
fn encode_persisted_slot_payload_by_meta( &self, field_name: &'static str, ) -> Result<Vec<u8>, InternalError>
Encode one non-optional field payload through the type’s own
FieldTypeMeta storage contract.Source§fn decode_persisted_slot_payload_by_meta(
bytes: &[u8],
field_name: &'static str,
) -> Result<T, InternalError>
fn decode_persisted_slot_payload_by_meta( bytes: &[u8], field_name: &'static str, ) -> Result<T, InternalError>
Decode one non-optional field payload through the type’s own
FieldTypeMeta storage contract.Source§fn encode_persisted_option_slot_payload_by_meta(
value: &Option<T>,
field_name: &'static str,
) -> Result<Vec<u8>, InternalError>
fn encode_persisted_option_slot_payload_by_meta( value: &Option<T>, field_name: &'static str, ) -> Result<Vec<u8>, InternalError>
Encode one optional field payload through the inner type’s own
FieldTypeMeta storage contract.Source§fn decode_persisted_option_slot_payload_by_meta(
bytes: &[u8],
field_name: &'static str,
) -> Result<Option<T>, InternalError>
fn decode_persisted_option_slot_payload_by_meta( bytes: &[u8], field_name: &'static str, ) -> Result<Option<T>, InternalError>
Decode one optional field payload through the inner type’s own
FieldTypeMeta storage contract.