Skip to content

Commit 03d7fc1

Browse files
committed
feat(config): add backend as alias
1 parent ebcd931 commit 03d7fc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

htsget-config/src/config/advanced/auth/response.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub struct AuthorizationRestrictions {
2929
#[serde(deny_unknown_fields)]
3030
pub struct AuthorizationRule {
3131
/// The location that the authorization applies to.
32+
#[serde(alias = "backend")]
3233
location: Location,
3334
/// The reference name restrictions to apply to this path.
3435
#[serde(skip_serializing_if = "Option::is_none")]
@@ -182,6 +183,7 @@ impl AuthorizationRestrictionsBuilder {
182183
#[serde(deny_unknown_fields)]
183184
pub struct AuthorizationRuleBuilder {
184185
/// The location that the authorization applies to.
186+
#[serde(alias = "backend")]
185187
location: Option<Location>,
186188
/// The reference name restrictions to apply to this path.
187189
#[serde(skip_serializing_if = "Vec::is_empty")]

0 commit comments

Comments
 (0)