Create webfinger
crate #5
2 changed files with 4 additions and 4 deletions
|
@ -219,7 +219,7 @@ impl From<ResourceDescriptorLinkXRD> for ResourceDescriptorLinkJRD {
|
||||||
|
|
||||||
impl From<ResourceDescriptorPropertyXRD> for (String, Option<String>) {
|
impl From<ResourceDescriptorPropertyXRD> for (String, Option<String>) {
|
||||||
fn from(value: ResourceDescriptorPropertyXRD) -> Self {
|
fn from(value: ResourceDescriptorPropertyXRD) -> Self {
|
||||||
(value.r#type, value.value)
|
(value.rel, value.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,8 +133,8 @@ pub struct ResourceDescriptorTitleXRD {
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct ResourceDescriptorPropertyXRD {
|
pub struct ResourceDescriptorPropertyXRD {
|
||||||
/// The property identifier, or type.
|
/// The property identifier, or type.
|
||||||
#[serde(rename = "@type")]
|
#[serde(rename = "@rel")]
|
||||||
pub r#type: String,
|
pub rel: String,
|
||||||
|
|
||||||
/// The property value.
|
/// The property value.
|
||||||
#[serde(rename = "$text")]
|
#[serde(rename = "$text")]
|
||||||
|
@ -236,7 +236,7 @@ impl From<ResourceDescriptorJRD> for ResourceDescriptorXRD {
|
||||||
impl From<(String, Option<String>)> for ResourceDescriptorPropertyXRD {
|
impl From<(String, Option<String>)> for ResourceDescriptorPropertyXRD {
|
||||||
fn from(value: (String, Option<String>)) -> Self {
|
fn from(value: (String, Option<String>)) -> Self {
|
||||||
Self {
|
Self {
|
||||||
r#type: value.0,
|
rel: value.0,
|
||||||
value: value.1,
|
value: value.1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue