#[non_exhaustive]pub struct MemoMetadata {
pub shape_id_ref: u32,
pub number: u32,
pub id: String,
pub author: String,
pub create_datetime: String,
pub command: String,
}Expand description
Metadata associated with a memo annotation (HWPX <hp:parameters>).
Carries the seven HWPX memo parameters (Prop, Command, ID, Number,
Author, MemoShapeIDRef, CreateDateTime). Empty / default values are
rendered by encoders as sensible defaults: Prop is always 0 on
한컴-authored fixtures so the field is omitted on the Core side, and
CreateDateTime is auto-generated at encode time if blank (a 한컴-native
memo always has a timestamp).
Other format encoders (Markdown, future ODT) can ignore the
HWPX-specific fields and just use author if useful.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shape_id_ref: u32Reference to the MemoShape table entry. 한컴 default is 65535.
number: u32Memo number (<hp:integerParam name="Number">). Equals the HWP5
memo_id. Encoders normally also derive the HWPX ID parameter
from this value ("memo{number}").
id: StringHWPX ID parameter (typically "memo{number}"). Encoders may
auto-derive from number when blank.
Memo author (Author parameter). Empty when unknown.
create_datetime: StringHWPX CreateDateTime parameter (ISO 8601 UTC). Empty triggers
encoder-side auto-generation at write time.
command: StringRaw wire Command parameter ("MEMO/{shape}/{number}/…" from HWP5).
Empty for HwpForge-authored memos — encoders synthesise a minimum
MEMO/{shape}/{number}/ form in that case.
Implementations§
Trait Implementations§
Source§impl Clone for MemoMetadata
impl Clone for MemoMetadata
Source§fn clone(&self) -> MemoMetadata
fn clone(&self) -> MemoMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoMetadata
impl Debug for MemoMetadata
Source§impl Default for MemoMetadata
impl Default for MemoMetadata
Source§impl<'de> Deserialize<'de> for MemoMetadata
impl<'de> Deserialize<'de> for MemoMetadata
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>,
impl Eq for MemoMetadata
Source§impl JsonSchema for MemoMetadata
impl JsonSchema for MemoMetadata
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MemoMetadata
impl PartialEq for MemoMetadata
Source§impl Serialize for MemoMetadata
impl Serialize for MemoMetadata
impl StructuralPartialEq for MemoMetadata
Auto Trait Implementations§
impl Freeze for MemoMetadata
impl RefUnwindSafe for MemoMetadata
impl Send for MemoMetadata
impl Sync for MemoMetadata
impl Unpin for MemoMetadata
impl UnsafeUnpin for MemoMetadata
impl UnwindSafe for MemoMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.