pub struct ReplaceKitIn {
pub category: Option<String>,
pub demo: Option<String>,
pub description: Option<String>,
pub features: Option<Vec<String>>,
pub framework: Option<String>,
pub preview: Option<String>,
pub slug: Option<String>,
pub source: Option<String>,
pub title: Option<String>,
pub use_case: Option<String>,
pub variants: Option<Vec<Variant>>,
}Fields§
§category: Option<String>Category groups the kit in the gallery browser.
demo: Option<String>Demo is the deployed site itself, when there is one.
description: Option<String>Description is the browse-card blurb, max 4096 characters.
features: Option<Vec<String>>Features are the highlights the card lists, at most 32.
framework: Option<String>Framework is the stack the kit is built on ("Next.js 14").
preview: Option<String>Preview is the still image the browse card renders, max 4096 characters.
slug: Option<String>Slug is the kit to replace, from the path.
source: Option<String>Source is the repository the kit is forked from, max 4096 characters.
title: Option<String>Title is the display name. Required, max 200 characters.
use_case: Option<String>UseCase is what the kit is for, in a phrase.
variants: Option<Vec<Variant>>Variants are the shapes this kit ships in, at most 32; the fork picks one.
Implementations§
Source§impl ReplaceKitIn
impl ReplaceKitIn
pub fn new() -> ReplaceKitIn
Trait Implementations§
Source§impl Clone for ReplaceKitIn
impl Clone for ReplaceKitIn
Source§fn clone(&self) -> ReplaceKitIn
fn clone(&self) -> ReplaceKitIn
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 ReplaceKitIn
impl Debug for ReplaceKitIn
Source§impl Default for ReplaceKitIn
impl Default for ReplaceKitIn
Source§fn default() -> ReplaceKitIn
fn default() -> ReplaceKitIn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplaceKitIn
impl<'de> Deserialize<'de> for ReplaceKitIn
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 ReplaceKitIn
impl PartialEq for ReplaceKitIn
Source§impl Serialize for ReplaceKitIn
impl Serialize for ReplaceKitIn
impl StructuralPartialEq for ReplaceKitIn
Auto Trait Implementations§
impl Freeze for ReplaceKitIn
impl RefUnwindSafe for ReplaceKitIn
impl Send for ReplaceKitIn
impl Sync for ReplaceKitIn
impl Unpin for ReplaceKitIn
impl UnsafeUnpin for ReplaceKitIn
impl UnwindSafe for ReplaceKitIn
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