Skip to content

Commit d13fe15

Browse files
authored
Merge pull request #7 from marsavar/v0.1.6
v0.1.6
2 parents 26e3f46 + 715503b commit d13fe15

8 files changed

Lines changed: 66 additions & 62 deletions

File tree

.github/workflows/check-test-and-lint.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
on:
22
pull_request:
33
push:
4-
branches:
5-
- main
64
paths:
7-
- 'src/**'
5+
- "src/**"
6+
- ".github/workflows/check-test-and-lint.yaml"
87

98
name: Check, Test and Lint
109

@@ -67,4 +66,4 @@ jobs:
6766
with:
6867
token: ${{ secrets.GITHUB_TOKEN }}
6968
args: --all-features
70-
name: Clippy Output
69+
name: Clippy Output

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55

6+
## [0.1.6] - 2022-12-28
7+
8+
### Added
9+
- Structs and enums now implement the `Clone` trait.
10+
611
## [0.1.5] - 2022-12-24
712

813
### Fixed

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aletheia"
3-
version = "0.1.5"
3+
version = "0.1.6"
44
edition = "2021"
55
description = "A client library for the Guardian's content API"
66
license = "MIT"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Simply add `aletheia` and `tokio` to the list of dependencies in your `Cargo.tom
1010

1111
```toml
1212
[dependencies]
13-
aletheia = "0.1.5"
13+
aletheia = "0.1.6"
1414
tokio = { version = "1", features = ["full"] }
1515
```
1616

src/enums.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
use serde::Deserialize;
55
use strum_macros::Display;
66

7-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
7+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
88
#[strum(serialize_all = "kebab-case")]
99
pub enum OrderBy {
1010
Newest,
1111
Oldest,
1212
Relevance,
1313
}
1414

15-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
15+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
1616
#[strum(serialize_all = "kebab-case")]
1717
pub enum OrderDate {
1818
Published,
1919
NewspaperEdition,
2020
LastModified,
2121
}
2222

23-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
23+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
2424
#[strum(serialize_all = "kebab-case")]
2525
pub enum UseDate {
2626
Published,
@@ -29,7 +29,7 @@ pub enum UseDate {
2929
LastModified,
3030
}
3131

32-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
32+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
3333
#[strum(serialize_all = "camelCase")]
3434
pub enum Field {
3535
TrailText,
@@ -59,7 +59,7 @@ pub enum Field {
5959
All,
6060
}
6161

62-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
62+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
6363
#[strum(serialize_all = "kebab-case")]
6464
pub enum Tag {
6565
Blog,
@@ -75,7 +75,7 @@ pub enum Tag {
7575
All,
7676
}
7777

78-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
78+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
7979
#[strum(serialize_all = "kebab-case")]
8080
pub enum Block<'a> {
8181
Main,
@@ -93,7 +93,7 @@ pub enum Block<'a> {
9393
BodyPublishedSince(i64),
9494
}
9595

96-
#[derive(Display, Debug, Deserialize, Eq, PartialEq)]
96+
#[derive(Clone, Display, Debug, Deserialize, Eq, PartialEq)]
9797
#[strum(serialize_all = "kebab-case")]
9898
pub enum Endpoint {
9999
Content,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub type Result<T> = core::result::Result<T, crate::Error>;
5757
/// The main asynchronous client used to build requests to send to the Guardian's
5858
/// content API. This client maintains a private internal asynchronous client
5959
/// implemented by [`reqwest::Client`]
60-
#[derive(Debug)]
60+
#[derive(Clone, Debug)]
6161
pub struct GuardianContentClient {
6262
http_client: reqwest::Client,
6363
api_key: String,

0 commit comments

Comments
 (0)