diff options
| author | Philipp A | 2018-11-20 00:48:06 +0100 |
|---|---|---|
| committer | Philipp A | 2018-11-20 00:48:06 +0100 |
| commit | d9ff9626417ab29cfa7054ad755052d3e5a08f5b (patch) | |
| tree | 7ba5253cbad2975ec7eae1551723ed1126454fb6 /src/document_tree | |
| parent | b136f04bc225380a6aa5daa28075eafd767a4a98 (diff) | |
| download | rust-rst-d9ff9626417ab29cfa7054ad755052d3e5a08f5b.tar.bz2 | |
Serializing document trees!
Diffstat (limited to 'src/document_tree')
| -rw-r--r-- | src/document_tree/attribute_types.rs | 4 | ||||
| -rw-r--r-- | src/document_tree/extra_attributes.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/document_tree/attribute_types.rs b/src/document_tree/attribute_types.rs index 1f3c466..9ad66be 100644 --- a/src/document_tree/attribute_types.rs +++ b/src/document_tree/attribute_types.rs @@ -16,8 +16,8 @@ impl Default for FixedSpace { fn default() -> FixedSpace { FixedSpace::Preserve #[derive(Debug,Serialize)] pub enum AlignH { Left, Center, Right} #[derive(Debug,Serialize)] pub enum AlignHV { Top, Middle, Bottom, Left, Center, Right } -#[derive(Debug,Serialize)] pub struct ID(String); -#[derive(Debug,Serialize)] pub struct NameToken(String); +#[derive(Debug,Serialize)] pub struct ID(pub String); +#[derive(Debug,Serialize)] pub struct NameToken(pub String); #[derive(Debug,Serialize)] pub enum Measure { diff --git a/src/document_tree/extra_attributes.rs b/src/document_tree/extra_attributes.rs index 9cd097d..80fe045 100644 --- a/src/document_tree/extra_attributes.rs +++ b/src/document_tree/extra_attributes.rs @@ -54,7 +54,7 @@ impl_extra!(LiteralBlock { space: FixedSpace }); impl_extra!(DoctestBlock { space: FixedSpace }); impl_extra!(SubstitutionDefinition { ltrim: Option<bool>, rtrim: Option<bool> }); impl_extra!(Comment { space: FixedSpace }); -impl_extra!(Target { refuri: Option<Url>, refid: Option<ID>, refname: Vec<NameToken>, anonymous: Option<bool> }); +impl_extra!(Target { refuri: Option<Url>, refid: Option<ID>, refname: Vec<NameToken>, anonymous: bool }); impl_extra!(Raw { space: FixedSpace, format: Vec<NameToken> }); impl_extra!(#[derive(Debug)] Image { align: Option<AlignHV>, @@ -85,7 +85,7 @@ impl_extra!(SubstitutionReference { refname: Vec<NameToken> }); impl_extra!(Problematic { refid: Option<ID> }); //also have non-inline versions. Inline image is no figure child, inline target has content -impl_extra!(TargetInline { refuri: Option<Url>, refid: Option<ID>, refname: Vec<NameToken>, anonymous: Option<bool> }); +impl_extra!(TargetInline { refuri: Option<Url>, refid: Option<ID>, refname: Vec<NameToken>, anonymous: bool }); impl_extra!(RawInline { space: FixedSpace, format: Vec<NameToken> }); impl_extra!(#[derive(Debug)] ImageInline { align: Option<AlignHV>, |
