Be more consistent with method names
This commit is contained in:
parent
755ab59d4c
commit
3a909b9be2
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-webfinger"
|
name = "actix-webfinger"
|
||||||
description = "Types and helpers to create and fetch Webfinger resources"
|
description = "Types and helpers to create and fetch Webfinger resources"
|
||||||
version = "0.3.0-alpha.1"
|
version = "0.3.0-alpha.2"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
||||||
|
|
|
@ -15,7 +15,7 @@ First, add Actix Webfinger as a dependency
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix = "0.10.0-alpha.1"
|
actix = "0.10.0-alpha.1"
|
||||||
actix-web = "3.0.0-alpha.1"
|
actix-web = "3.0.0-alpha.1"
|
||||||
actix-webfinger = "0.3.0-alpha.1"
|
actix-webfinger = "0.3.0-alpha.2"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then use it in your application
|
Then use it in your application
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
//! [dependencies]
|
//! [dependencies]
|
||||||
//! actix = "0.10.0-alpha.1"
|
//! actix = "0.10.0-alpha.1"
|
||||||
//! actix-web = "3.0.0-alpha.1"
|
//! actix-web = "3.0.0-alpha.1"
|
||||||
//! actix-webfinger = "0.3.0-alpha.1"
|
//! actix-webfinger = "0.3.0-alpha.2"
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! Then use it in your application
|
//! Then use it in your application
|
||||||
|
@ -519,7 +519,7 @@ impl Webfinger {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set a salmon link from this Webfinger
|
/// Set a salmon link from this Webfinger
|
||||||
pub fn set_salmon(&mut self, href: &str) -> &mut Self {
|
pub fn add_salmon(&mut self, href: &str) -> &mut Self {
|
||||||
self.links.push(Link {
|
self.links.push(Link {
|
||||||
rel: "salmon".to_owned(),
|
rel: "salmon".to_owned(),
|
||||||
href: Some(href.to_owned()),
|
href: Some(href.to_owned()),
|
||||||
|
@ -535,7 +535,7 @@ impl Webfinger {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set a magic public key link for this Webfinger
|
/// Set a magic public key link for this Webfinger
|
||||||
pub fn set_magic_public_key(&mut self, magic_public_key: &str) -> &mut Self {
|
pub fn add_magic_public_key(&mut self, magic_public_key: &str) -> &mut Self {
|
||||||
self.links.push(Link {
|
self.links.push(Link {
|
||||||
rel: "magic-public-key".to_owned(),
|
rel: "magic-public-key".to_owned(),
|
||||||
href: Some(format!(
|
href: Some(format!(
|
||||||
|
@ -554,7 +554,7 @@ impl Webfinger {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set an ostatus link for this Webfinger
|
/// Set an ostatus link for this Webfinger
|
||||||
pub fn set_ostatus(&mut self, template: &str) -> &mut Self {
|
pub fn add_ostatus(&mut self, template: &str) -> &mut Self {
|
||||||
self.links.push(Link {
|
self.links.push(Link {
|
||||||
rel: "http://ostatus.org/schema/1.0/subscribe".to_owned(),
|
rel: "http://ostatus.org/schema/1.0/subscribe".to_owned(),
|
||||||
href: None,
|
href: None,
|
||||||
|
|
Loading…
Reference in a new issue