pub struct Annotation {
pub id: Option<String>,
pub content: Vec<AnnotationContent>,
}Fields§
§id: Option<String>§content: Vec<AnnotationContent>Implementations§
Source§impl Annotation
impl Annotation
Sourcepub fn extract_documentation(&self) -> Result<Vec<String>, Error>
pub fn extract_documentation(&self) -> Result<Vec<String>, Error>
Extract the xs:documentation nodes from this xs:annotation node.
This will extract each xs:documentation node from the xs:annotation,
serialize the content of the xs:documentation node into a string and
return it as vector.
§Errors
Will raise an error if the serialization of the xs:documentation node
has failed.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
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 Annotation
impl Debug for Annotation
Source§impl<'de> Deserializer<'de, Annotation> for Box<AnnotationDeserializer>
impl<'de> Deserializer<'de, Annotation> for Box<AnnotationDeserializer>
Source§fn init(
helper: &mut DeserializeHelper,
event: Event<'de>,
) -> DeserializerResult<'de, Annotation>
fn init( helper: &mut DeserializeHelper, event: Event<'de>, ) -> DeserializerResult<'de, Annotation>
Source§fn next(
self,
helper: &mut DeserializeHelper,
event: Event<'de>,
) -> DeserializerResult<'de, Annotation>
fn next( self, helper: &mut DeserializeHelper, event: Event<'de>, ) -> DeserializerResult<'de, Annotation>
Source§fn finish(self, helper: &mut DeserializeHelper) -> Result<Annotation, Error>
fn finish(self, helper: &mut DeserializeHelper) -> Result<Annotation, Error>
Force the deserializer to finish. Read more
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
Source§impl WithDeserializer for Annotation
impl WithDeserializer for Annotation
Source§type Deserializer = Box<AnnotationDeserializer>
type Deserializer = Box<AnnotationDeserializer>
The deserializer to use for this type.
Source§fn init<'de>(
helper: &mut DeserializeHelper,
event: Event<'de>,
) -> Result<DeserializerOutput<'de, Self>, Error>
fn init<'de>( helper: &mut DeserializeHelper, event: Event<'de>, ) -> Result<DeserializerOutput<'de, Self>, Error>
impl Eq for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, R, X> DeserializeSync<'de, R> for Xwhere
R: XmlReaderSync<'de>,
X: WithDeserializer,
impl<'de, R, X> DeserializeSync<'de, R> for Xwhere
R: XmlReaderSync<'de>,
X: WithDeserializer,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.