Struct TextProfileProperty
#[non_exhaustive]pub struct TextProfileProperty {
pub name: String,
pub value: String,
pub signature: Option<String>,
pub metadata: Tag,
}Expand description
One signed or unsigned profile property.
ExtraCodecs.PROPERTY_MAP accepts at most 16 distinct unsigned map names. Signed or metadata-bearing records instead use its 16-entry list codec, whose UTF-16 limits are 64 units for names, 32767 for values and 1024 for signatures.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringProperty name.
value: StringProperty value.
signature: Option<String>Optional signature.
metadata: TagUnknown property fields, as a compound.
Trait Implementations§
§impl Clone for TextProfileProperty
impl Clone for TextProfileProperty
§fn clone(&self) -> TextProfileProperty
fn clone(&self) -> TextProfileProperty
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 more§impl Debug for TextProfileProperty
impl Debug for TextProfileProperty
§impl Default for TextProfileProperty
impl Default for TextProfileProperty
§fn default() -> TextProfileProperty
fn default() -> TextProfileProperty
Returns the “default value” for a type. Read more
impl Eq for TextProfileProperty
§impl PartialEq for TextProfileProperty
impl PartialEq for TextProfileProperty
impl StructuralPartialEq for TextProfileProperty
Auto Trait Implementations§
impl Freeze for TextProfileProperty
impl RefUnwindSafe for TextProfileProperty
impl Send for TextProfileProperty
impl Sync for TextProfileProperty
impl Unpin for TextProfileProperty
impl UnsafeUnpin for TextProfileProperty
impl UnwindSafe for TextProfileProperty
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