Be more consistent with method names
This commit is contained in:
parent
755ab59d4c
commit
3a909b9be2
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "actix-webfinger"
|
||||
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"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
||||
|
|
|
@ -15,7 +15,7 @@ First, add Actix Webfinger as a dependency
|
|||
[dependencies]
|
||||
actix = "0.10.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
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
//! [dependencies]
|
||||
//! actix = "0.10.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
|
||||
|
@ -519,7 +519,7 @@ impl 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 {
|
||||
rel: "salmon".to_owned(),
|
||||
href: Some(href.to_owned()),
|
||||
|
@ -535,7 +535,7 @@ impl 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 {
|
||||
rel: "magic-public-key".to_owned(),
|
||||
href: Some(format!(
|
||||
|
@ -554,7 +554,7 @@ impl 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 {
|
||||
rel: "http://ostatus.org/schema/1.0/subscribe".to_owned(),
|
||||
href: None,
|
||||
|
|
Loading…
Reference in a new issue