pub struct Friend {
pub id: &'static str,
pub name: &'static str,
pub ecosystem: &'static str,
pub technology_kind: TechnologyKind,
pub identity_kind: IdentityKind,
pub figure_kind: FigureKind,
pub form: Option<&'static str>,
pub tags: &'static [&'static str],
pub notes: &'static str,
}Expand description
A typed metadata record for one Fellow Friend fixture.
Fields§
§id: &'static strStable fixture identifier.
name: &'static strHuman-readable display name.
ecosystem: &'static strTechnology 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<&'static str>Short neutral form label, when one is useful.
Stable lowercase tags for examples and filtering.
notes: &'static strShort conservative note suitable for docs and sample data.
Implementations§
Source§impl Friend
impl Friend
Sourcepub fn has_tag(&self, tag: &str) -> bool
pub fn has_tag(&self, tag: &str) -> bool
Returns true when this friend has a tag matching tag.
Matching trims the input and uses ASCII case-insensitive comparison.
Sourcepub fn matches_ecosystem(&self, ecosystem: &str) -> bool
pub fn matches_ecosystem(&self, ecosystem: &str) -> bool
Returns true when this friend belongs to ecosystem.
Matching trims the input and uses ASCII case-insensitive comparison.
Trait Implementations§
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 Serialize for Friend
impl Serialize for Friend
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 Copy for Friend
impl Eq for Friend
impl StructuralPartialEq for Friend
Auto Trait Implementations§
impl Freeze for Friend
impl RefUnwindSafe for Friend
impl Send for Friend
impl Sync for Friend
impl Unpin for Friend
impl UnsafeUnpin for Friend
impl UnwindSafe for Friend
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