pub struct GrowPathUpdate {
pub color: Value,
pub name: String,
pub sort_key: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
Replacement stage fields. ID comes from the URL. name and color are required; omitting sortKey resets it to 0, unlike the comment-viewer update endpoint.
Fields§
§color: ValueColor key accepted by the growth-path validator.
Allowed values: accent, amber, basic, blue, constructive, critical, cyan, destructive, emerald, error, fuchsia, gray, green, indigo, info, lime, magic, orange, pink, purple, red, rose, sky, success, teal, violet, warning, yellow.
name: StringTrimmed stage name or translation key, 1–100 characters. Duplicate names are allowed.
sort_key: Option<i64>Nonnegative display order and calculation priority; defaults to 0. Larger values take precedence when a person qualifies for several stages.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for GrowPathUpdate
impl Clone for GrowPathUpdate
Source§impl Debug for GrowPathUpdate
impl Debug for GrowPathUpdate
Source§impl Default for GrowPathUpdate
impl Default for GrowPathUpdate
Source§impl<'de> Deserialize<'de> for GrowPathUpdate
impl<'de> Deserialize<'de> for GrowPathUpdate
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 GrowPathUpdate
impl PartialEq for GrowPathUpdate
Source§impl Serialize for GrowPathUpdate
impl Serialize for GrowPathUpdate
impl StructuralPartialEq for GrowPathUpdate
Auto Trait Implementations§
impl Freeze for GrowPathUpdate
impl RefUnwindSafe for GrowPathUpdate
impl Send for GrowPathUpdate
impl Sync for GrowPathUpdate
impl Unpin for GrowPathUpdate
impl UnsafeUnpin for GrowPathUpdate
impl UnwindSafe for GrowPathUpdate
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