pub struct UnparsedEntity {
pub system_id: String,
pub public_id: Option<String>,
}Expand description
An owned XML document with an arena-allocated tree.
An unparsed external general entity declared with an NDATA
annotation (XML 1.0 § 4.2.2): <!ENTITY name SYSTEM "uri" NDATA n>
or the PUBLIC "fpi" "uri" form. Backs XSLT’s
unparsed-entity-uri() and unparsed-entity-public-id()
(XSLT 1.0 § 12.4).
Fields§
§system_id: StringThe entity’s SYSTEM identifier — the URI a non-XML processor would fetch. Stored as declared; callers resolve it against the document’s base URI.
public_id: Option<String>The entity’s PUBLIC identifier (FPI), when declared with the
PUBLIC form; None for SYSTEM-only declarations.
Trait Implementations§
Source§impl Clone for UnparsedEntity
impl Clone for UnparsedEntity
Source§fn clone(&self) -> UnparsedEntity
fn clone(&self) -> UnparsedEntity
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 moreSource§impl Debug for UnparsedEntity
impl Debug for UnparsedEntity
Source§impl Default for UnparsedEntity
impl Default for UnparsedEntity
Source§fn default() -> UnparsedEntity
fn default() -> UnparsedEntity
Returns the “default value” for a type. Read more
Source§impl PartialEq for UnparsedEntity
impl PartialEq for UnparsedEntity
Source§fn eq(&self, other: &UnparsedEntity) -> bool
fn eq(&self, other: &UnparsedEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnparsedEntity
Auto Trait Implementations§
impl Freeze for UnparsedEntity
impl RefUnwindSafe for UnparsedEntity
impl Send for UnparsedEntity
impl Sync for UnparsedEntity
impl Unpin for UnparsedEntity
impl UnsafeUnpin for UnparsedEntity
impl UnwindSafe for UnparsedEntity
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