pub struct CmlDocument {
pub version: String,
pub encoding: String,
pub profile: String,
pub id: Option<String>,
pub header: Header,
pub body: Body,
pub footer: Footer,
}Expand description
A complete CML v0.2 document
Fields§
§version: StringCML version (always “0.2”)
encoding: StringDocument encoding (always “utf-8”)
profile: StringProfile identifier (e.g., “law:constitution”, “code:api”, “edu:textbook”) Format: “domain:profile” or “domain:profile:version”
id: Option<String>Optional document ID
header: HeaderDocument header (metadata) - REQUIRED
body: BodyDocument body (content) - REQUIRED
Document footer (signatures, citations, annotations) - REQUIRED (may be empty)
Implementations§
Trait Implementations§
Source§impl Clone for CmlDocument
impl Clone for CmlDocument
Source§fn clone(&self) -> CmlDocument
fn clone(&self) -> CmlDocument
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 CmlDocument
impl Debug for CmlDocument
Source§impl<'de> Deserialize<'de> for CmlDocument
impl<'de> Deserialize<'de> for CmlDocument
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 CmlDocument
impl PartialEq for CmlDocument
Source§impl Serialize for CmlDocument
impl Serialize for CmlDocument
impl StructuralPartialEq for CmlDocument
Auto Trait Implementations§
impl Freeze for CmlDocument
impl RefUnwindSafe for CmlDocument
impl Send for CmlDocument
impl Sync for CmlDocument
impl Unpin for CmlDocument
impl UnwindSafe for CmlDocument
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