pub struct OverrideItemDraft {
pub id: PublicId,
pub comment: String,
}Expand description
Like OverrideItem but with a different serialization.
When editing a draft in code editor, we don’t want
to skip empty comments to show to the user they exist and encourage
to fill them.
Unfortunately we need another type for it (just like Draft itself).
Fields§
§id: PublicId§comment: StringTrait Implementations§
Source§impl Clone for OverrideItemDraft
impl Clone for OverrideItemDraft
Source§fn clone(&self) -> OverrideItemDraft
fn clone(&self) -> OverrideItemDraft
Returns a duplicate of the value. Read more
1.0.0 · 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 OverrideItemDraft
impl Debug for OverrideItemDraft
Source§impl<'de> Deserialize<'de> for OverrideItemDraft
impl<'de> Deserialize<'de> for OverrideItemDraft
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 From<OverrideItem> for OverrideItemDraft
impl From<OverrideItem> for OverrideItemDraft
Source§fn from(item: OverrideItem) -> Self
fn from(item: OverrideItem) -> Self
Converts to this type from the input type.
Source§impl From<OverrideItemDraft> for OverrideItem
impl From<OverrideItemDraft> for OverrideItem
Source§fn from(item: OverrideItemDraft) -> Self
fn from(item: OverrideItemDraft) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OverrideItemDraft
impl RefUnwindSafe for OverrideItemDraft
impl Send for OverrideItemDraft
impl Sync for OverrideItemDraft
impl Unpin for OverrideItemDraft
impl UnwindSafe for OverrideItemDraft
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