pub struct ProfileRef {
pub id: String,
pub name: String,
pub owner: String,
pub description: String,
pub url: String,
pub stars: Option<u64>,
pub channel: String,
pub metadata: HashMap<String, String>,
}Expand description
A reference to a profile found via search
Fields§
§id: StringUnique identifier (e.g., “github:user/repo” or “awesome:channel#item”)
name: StringDisplay name
owner: StringOwner/author
description: StringDescription
url: StringSource URL (git clone URL or web URL)
stars: Option<u64>Star count (if available)
channel: StringChannel name this came from
metadata: HashMap<String, String>Additional metadata
Trait Implementations§
Source§impl Clone for ProfileRef
impl Clone for ProfileRef
Source§fn clone(&self) -> ProfileRef
fn clone(&self) -> ProfileRef
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 ProfileRef
impl Debug for ProfileRef
Source§impl<'de> Deserialize<'de> for ProfileRef
impl<'de> Deserialize<'de> for ProfileRef
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
Auto Trait Implementations§
impl Freeze for ProfileRef
impl RefUnwindSafe for ProfileRef
impl Send for ProfileRef
impl Sync for ProfileRef
impl Unpin for ProfileRef
impl UnwindSafe for ProfileRef
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