Struct ooxml::packaging::relationship::Relationships
source · pub struct Relationships { /* private fields */ }
Implementations§
source§impl Relationships
impl Relationships
sourcepub fn parse_from_xml_reader<R: BufRead>(reader: R) -> Self
pub fn parse_from_xml_reader<R: BufRead>(reader: R) -> Self
Parse content types data from an xml reader.
sourcepub fn parse_from_xml_str(reader: &str) -> Self
pub fn parse_from_xml_str(reader: &str) -> Self
Parse content types data from an xml str.
pub fn add_relationship(&mut self, relationship: Relationship)
pub fn get_relationship_by_id(&self, id: &str) -> Option<&Relationship>
pub fn is_empty(&self) -> bool
pub fn contains(&self, id: &str) -> bool
Trait Implementations§
source§impl Clone for Relationships
impl Clone for Relationships
source§fn clone(&self) -> Relationships
fn clone(&self) -> Relationships
Returns a copy 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 Relationships
impl Debug for Relationships
source§impl Default for Relationships
impl Default for Relationships
source§fn default() -> Relationships
fn default() -> Relationships
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Relationships
impl<'de> Deserialize<'de> for Relationships
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Relationships
impl Display for Relationships
source§impl PartialEq for Relationships
impl PartialEq for Relationships
source§fn eq(&self, other: &Relationships) -> bool
fn eq(&self, other: &Relationships) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Relationships
Auto Trait Implementations§
impl RefUnwindSafe for Relationships
impl Send for Relationships
impl Sync for Relationships
impl Unpin for Relationships
impl UnwindSafe for Relationships
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