Skip to content

Commit 9e98541

Browse files
committed
Fix uneeded trait bounds
1 parent af8d63a commit 9e98541

File tree

1 file changed

+5
-1
lines changed
  • crates/stackable-operator/src

1 file changed

+5
-1
lines changed

crates/stackable-operator/src/crd.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
use std::marker::PhantomData;
22

3+
use educe::Educe;
34
use schemars::JsonSchema;
45
use serde::{Deserialize, Serialize};
56

67
/// A reference to a product cluster (for example, a `ZookeeperCluster`)
78
///
89
/// `namespace`'s defaulting only applies when retrieved via [`ClusterRef::namespace_relative_from`]
9-
#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize, JsonSchema)]
10+
#[derive(Deserialize, Serialize, JsonSchema, Educe)]
11+
#[educe(Clone(bound()), Debug(bound()), Default(bound()), PartialEq(bound()))]
1012
pub struct ClusterRef<K> {
1113
/// The name of the cluster
1214
pub name: Option<String>,
15+
1316
/// The namespace of the cluster
1417
///
1518
/// This field is optional, and will default to the namespace of the referring object.
1619
#[serde(default)]
1720
pub namespace: Option<String>,
21+
1822
#[serde(skip)]
1923
_kind: PhantomData<K>,
2024
}

0 commit comments

Comments
 (0)