#[non_exhaustive]pub struct SkillResponse {Show 16 fields
pub author_id: String,
pub content: String,
pub created_at: String,
pub description: String,
pub download_count: i64,
pub id: String,
pub is_ai_generated: bool,
pub name: String,
pub originating_session_ids: Vec<String>,
pub parent_id: String,
pub slug: String,
pub tags: Vec<String>,
pub type_: String,
pub updated_at: String,
pub version: String,
pub visibility: String,
}Expand description
The unified Skill shape the console expects (camelCase).
Models the contract’s skillResponse schema.
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.The contract’s authorId.
content: StringThe contract’s content.
created_at: StringThe contract’s createdAt.
description: StringThe contract’s description.
download_count: i64The contract’s downloadCount.
id: StringThe contract’s id.
is_ai_generated: boolThe contract’s isAiGenerated.
name: StringThe contract’s name.
originating_session_ids: Vec<String>The contract’s originatingSessionIds.
parent_id: StringThe contract’s parentId.
slug: StringThe contract’s slug.
The contract’s tags.
type_: StringThe contract’s type.
updated_at: StringThe contract’s updatedAt.
version: StringThe contract’s version.
visibility: StringThe contract’s visibility.
Trait Implementations§
Source§impl Clone for SkillResponse
impl Clone for SkillResponse
Source§fn clone(&self) -> SkillResponse
fn clone(&self) -> SkillResponse
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 ContractModel for SkillResponse
impl ContractModel for SkillResponse
Source§impl Debug for SkillResponse
impl Debug for SkillResponse
Source§impl Default for SkillResponse
impl Default for SkillResponse
Source§fn default() -> SkillResponse
fn default() -> SkillResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkillResponsewhere
SkillResponse: Default,
impl<'de> Deserialize<'de> for SkillResponsewhere
SkillResponse: Default,
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 PartialEq for SkillResponse
impl PartialEq for SkillResponse
Source§impl Serialize for SkillResponse
impl Serialize for SkillResponse
impl StructuralPartialEq for SkillResponse
Auto Trait Implementations§
impl Freeze for SkillResponse
impl RefUnwindSafe for SkillResponse
impl Send for SkillResponse
impl Sync for SkillResponse
impl Unpin for SkillResponse
impl UnsafeUnpin for SkillResponse
impl UnwindSafe for SkillResponse
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