pub struct FriendRecord {
pub id: String,
pub name: String,
pub ecosystem: String,
pub technology_kind: TechnologyKind,
pub identity_kind: IdentityKind,
pub figure_kind: FigureKind,
pub form: Option<String>,
pub tags: Vec<String>,
pub notes: String,
}Expand description
Owned serde-friendly representation of a Fellow Friend record.
Friend stores static fixture references. FriendRecord is available behind
the serde feature for examples that need to deserialize owned sample data.
Fields§
§id: StringStable fixture identifier.
name: StringHuman-readable display name.
ecosystem: StringTechnology ecosystem associated with the record.
technology_kind: TechnologyKindBroad technology category for the ecosystem.
identity_kind: IdentityKindBroad identity category for the friend or symbol.
figure_kind: FigureKindBroad figure category for the visual or symbolic form.
form: Option<String>Short neutral form label, when one is useful.
Stable tags for examples and filtering.
notes: StringShort conservative note suitable for docs and sample data.
Trait Implementations§
Source§impl Clone for FriendRecord
impl Clone for FriendRecord
Source§fn clone(&self) -> FriendRecord
fn clone(&self) -> FriendRecord
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 FriendRecord
impl Debug for FriendRecord
Source§impl<'de> Deserialize<'de> for FriendRecord
impl<'de> Deserialize<'de> for FriendRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FriendRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FriendRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Friend> for FriendRecord
Available on crate feature serde only.
impl From<&Friend> for FriendRecord
Available on crate feature
serde only.Source§fn from(friend: &Friend) -> FriendRecord
fn from(friend: &Friend) -> FriendRecord
Converts to this type from the input type.
Source§impl From<Friend> for FriendRecord
Available on crate feature serde only.
impl From<Friend> for FriendRecord
Available on crate feature
serde only.Source§fn from(friend: Friend) -> FriendRecord
fn from(friend: Friend) -> FriendRecord
Converts to this type from the input type.
Source§impl PartialEq for FriendRecord
impl PartialEq for FriendRecord
Source§fn eq(&self, other: &FriendRecord) -> bool
fn eq(&self, other: &FriendRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FriendRecord
impl Serialize for FriendRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for FriendRecord
impl StructuralPartialEq for FriendRecord
Auto Trait Implementations§
impl Freeze for FriendRecord
impl RefUnwindSafe for FriendRecord
impl Send for FriendRecord
impl Sync for FriendRecord
impl Unpin for FriendRecord
impl UnsafeUnpin for FriendRecord
impl UnwindSafe for FriendRecord
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