pub struct EntityDecl {
pub name: String,
pub parameter: bool,
pub orig: Option<String>,
pub content: Option<String>,
pub system_id: Option<String>,
pub public_id: Option<String>,
pub ndata: Option<String>,
}Expand description
An <!ENTITY name ...> general-entity declaration — internal (with a
literal replacement text) or external (SYSTEM/PUBLIC, optionally
NDATA). Mirrors the fields lxml reads off libxml2’s xmlEntity
and what the DTD serializer reconstructs.
Fields§
§name: String§parameter: booltrue for a parameter entity (<!ENTITY % name …>).
orig: Option<String>Replacement text as written, before reference expansion
(libxml2’s orig). None for external entities.
content: Option<String>Replacement text after character/entity-reference expansion
(libxml2’s content). None for external entities.
system_id: Option<String>SYSTEM identifier (or the second literal of PUBLIC).
public_id: Option<String>PUBLIC identifier.
ndata: Option<String>NDATA notation name — present only for unparsed entities.
Trait Implementations§
Source§impl Clone for EntityDecl
impl Clone for EntityDecl
Source§fn clone(&self) -> EntityDecl
fn clone(&self) -> EntityDecl
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 moreAuto Trait Implementations§
impl Freeze for EntityDecl
impl RefUnwindSafe for EntityDecl
impl Send for EntityDecl
impl Sync for EntityDecl
impl Unpin for EntityDecl
impl UnsafeUnpin for EntityDecl
impl UnwindSafe for EntityDecl
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