pub struct UpdateSkillRequest {
pub content: Option<String>,
pub description: Option<String>,
pub name: Option<String>,
pub tags: Option<Vec<String>>,
pub type_: Option<String>,
pub visibility: Option<String>,
}Expand description
The PUT /v1/skills/:slug body — all fields optional; only present fields are applied onto the existing record.
Every field is an Option that is omitted from the wire when unset,
because “only present fields are applied” makes an absent field the only
way to say “leave this one alone”. A body that spelled all six every time
would turn a one-field rename into a five-field erasure: the server would
dutifully apply the empty content, the empty description, and the empty tag
list it was sent.
Models the contract’s updateSkillRequest schema.
Fields§
§content: Option<String>The contract’s content.
description: Option<String>The contract’s description.
name: Option<String>The contract’s name.
The contract’s tags.
type_: Option<String>The contract’s type.
visibility: Option<String>The contract’s visibility.
Trait Implementations§
Source§impl Clone for UpdateSkillRequest
impl Clone for UpdateSkillRequest
Source§fn clone(&self) -> UpdateSkillRequest
fn clone(&self) -> UpdateSkillRequest
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 UpdateSkillRequest
impl ContractModel for UpdateSkillRequest
Source§impl Debug for UpdateSkillRequest
impl Debug for UpdateSkillRequest
Source§impl Default for UpdateSkillRequest
impl Default for UpdateSkillRequest
Source§fn default() -> UpdateSkillRequest
fn default() -> UpdateSkillRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSkillRequestwhere
UpdateSkillRequest: Default,
impl<'de> Deserialize<'de> for UpdateSkillRequestwhere
UpdateSkillRequest: 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 UpdateSkillRequest
impl PartialEq for UpdateSkillRequest
Source§impl Serialize for UpdateSkillRequest
impl Serialize for UpdateSkillRequest
impl StructuralPartialEq for UpdateSkillRequest
Auto Trait Implementations§
impl Freeze for UpdateSkillRequest
impl RefUnwindSafe for UpdateSkillRequest
impl Send for UpdateSkillRequest
impl Sync for UpdateSkillRequest
impl Unpin for UpdateSkillRequest
impl UnsafeUnpin for UpdateSkillRequest
impl UnwindSafe for UpdateSkillRequest
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