pub struct IdAttributeRegistration { /* private fields */ }Expand description
Caller-declared XML ID attribute registration.
Registrations are request context rather than security policy. A global registration applies an attribute local name to every element; a scoped registration applies to one element local name in either any namespace or one exact namespace.
Implementations§
Source§impl IdAttributeRegistration
impl IdAttributeRegistration
Sourcepub fn global(attribute_local_name: impl Into<String>) -> Self
pub fn global(attribute_local_name: impl Into<String>) -> Self
Register an attribute local name as an ID on every element.
Sourcepub fn scoped_any_namespace(
attribute_local_name: impl Into<String>,
element_local_name: impl Into<String>,
) -> Self
pub fn scoped_any_namespace( attribute_local_name: impl Into<String>, element_local_name: impl Into<String>, ) -> Self
Register an attribute as an ID on a local element name in any namespace.
This models libxmlsec1’s unqualified --id-attr element-name contract.
Sourcepub fn scoped(
attribute_local_name: impl Into<String>,
element_local_name: impl Into<String>,
element_namespace: Option<&str>,
) -> Self
pub fn scoped( attribute_local_name: impl Into<String>, element_local_name: impl Into<String>, element_namespace: Option<&str>, ) -> Self
Register an attribute as an ID only on matching elements.
element_namespace is the namespace URI, not an XML prefix. None
matches only elements without a namespace.
Trait Implementations§
Source§impl Clone for IdAttributeRegistration
impl Clone for IdAttributeRegistration
Source§fn clone(&self) -> IdAttributeRegistration
fn clone(&self) -> IdAttributeRegistration
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 IdAttributeRegistration
impl Debug for IdAttributeRegistration
impl Eq for IdAttributeRegistration
Source§impl PartialEq for IdAttributeRegistration
impl PartialEq for IdAttributeRegistration
impl StructuralPartialEq for IdAttributeRegistration
Auto Trait Implementations§
impl Freeze for IdAttributeRegistration
impl RefUnwindSafe for IdAttributeRegistration
impl Send for IdAttributeRegistration
impl Sync for IdAttributeRegistration
impl Unpin for IdAttributeRegistration
impl UnsafeUnpin for IdAttributeRegistration
impl UnwindSafe for IdAttributeRegistration
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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