#[non_exhaustive]pub struct TipEntry {
pub id: Option<String>,
pub text: Option<String>,
pub cooldown_sessions: Option<u64>,
pub priority: Option<i64>,
pub extra: Extra,
}Expand description
A tip object.
Docs: spinnerTipsOverride.tips.
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.id: Option<String>Up to 64 letters, digits, ., _, or -. Claude Code keys the tip’s show history on
it, so the tip’s cooldown survives reordering the list. Of two entries with the same id,
Claude Code uses the first.
- Values: string, up to 64 letters, digits,
.,_, or-(required) - Default: a position-based id
Docs: id.
text: Option<String>The tip, one line of up to 500 characters. Claude Code strips ANSI escapes and control characters and collapses whitespace.
- Values: string, one line of up to 500 characters (required)
- Default: none: required
Docs: text.
cooldown_sessions: Option<u64>Sessions Claude Code waits before showing the tip again, 0 to 1000, default 0.
- Values: a whole number,
0to1000 - Default:
0
Docs: cooldownSessions.
priority: Option<i64>Order among tips that have gone unshown equally long, higher first, -10 to 10,
default 0.
- Values: a whole number,
-10to10 - Default:
0
Docs: priority.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TipEntry
impl<'de> Deserialize<'de> for TipEntry
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
impl StructuralPartialEq for TipEntry
Auto Trait Implementations§
impl Forget for TipEntry
impl Freeze for TipEntry
impl Move for TipEntry
impl RefUnwindSafe for TipEntry
impl Send for TipEntry
impl Sync for TipEntry
impl Unpin for TipEntry
impl UnsafeUnpin for TipEntry
impl UnwindSafe for TipEntry
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