Struct gedcomx::Uri [−][src]
pub struct Uri(_);
Expand description
Specified by RFC 3986.
GEDCOM X resources use the URI to reference other entities. For example, a GEDCOM X Relationship identifies a person in the relationship by referencing a URI that identifies the person. When a property (such as the person1 property of Relationship) is of data type URI, the value of the property is interpreted as a “URI Reference” as defined by RFC 3986, section 4.
Trait Implementations
impl<'de> Deserialize<'de> for Uri
[src]
impl<'de> Deserialize<'de> for Uri
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<FactQualifier> for Uri
[src]
impl From<FactQualifier> for Uri
[src]fn from(f: FactQualifier) -> Self
[src]
fn from(f: FactQualifier) -> Self
[src]Performs the conversion.
impl From<NamePartQualifier> for Uri
[src]
impl From<NamePartQualifier> for Uri
[src]fn from(n: NamePartQualifier) -> Self
[src]
fn from(n: NamePartQualifier) -> Self
[src]Performs the conversion.
impl From<SourceReferenceQualifier> for Uri
[src]
impl From<SourceReferenceQualifier> for Uri
[src]fn from(s: SourceReferenceQualifier) -> Self
[src]
fn from(s: SourceReferenceQualifier) -> Self
[src]Performs the conversion.
impl TryFrom<&'_ PlaceDescription> for Uri
[src]
impl TryFrom<&'_ PlaceDescription> for Uri
[src]type Error = GedcomxError
type Error = GedcomxError
The type returned in the event of a conversion error.
fn try_from(pd: &PlaceDescription) -> Result<Self, Self::Error>
[src]
fn try_from(pd: &PlaceDescription) -> Result<Self, Self::Error>
[src]Performs the conversion.
impl TryFrom<&'_ SourceDescription> for Uri
[src]
impl TryFrom<&'_ SourceDescription> for Uri
[src]type Error = GedcomxError
type Error = GedcomxError
The type returned in the event of a conversion error.
fn try_from(sd: &SourceDescription) -> Result<Self, Self::Error>
[src]
fn try_from(sd: &SourceDescription) -> Result<Self, Self::Error>
[src]Performs the conversion.
impl YaDeserialize for Uri
[src]
impl YaDeserialize for Uri
[src]fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
[src]
impl YaSerialize for Uri
[src]
impl YaSerialize for Uri
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for Uri
[src]
Auto Trait Implementations
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,