pub struct InstanceReference {
pub api_version: String,
pub kind: String,
pub name: String,
pub namespace: String,
pub last_reconciled_at: Option<String>,
}Expand description
Full Kubernetes object reference to a Bind9Instance resource.
This structure follows Kubernetes object reference conventions and stores
the complete information needed to reference a namespace-scoped Bind9Instance.
Used in DNSZone.status.bind9Instances for tracking instances that have claimed the zone
(via bind9InstancesFrom label selectors or clusterRef).
Note on Equality: PartialEq, Eq, and Hash are implemented to compare only the
identity fields (api_version, kind, name, namespace), ignoring last_reconciled_at.
This ensures that instances are correctly identified as duplicates even when their
reconciliation timestamps differ.
Fields§
§api_version: StringAPI version of the Bind9Instance resource (e.g., “bindy.firestoned.io/v1beta1”)
kind: StringKind of the resource (always “Bind9Instance”)
name: StringName of the Bind9Instance resource
namespace: StringNamespace of the Bind9Instance resource
last_reconciled_at: Option<String>Timestamp when this instance was last successfully reconciled with zone configuration.
This field is set when the zone configuration is successfully applied to the instance. It is reset (cleared) when:
- The instance is deleted
- The instance’s pod IP changes (requiring zone reconfiguration)
- The zone spec changes (requiring reconfiguration)
The reconciler uses this field to determine which instances need zone configuration.
If this field is None or the timestamp is before the last spec change, the instance
will be reconfigured.
Trait Implementations§
Source§impl Clone for InstanceReference
impl Clone for InstanceReference
Source§fn clone(&self) -> InstanceReference
fn clone(&self) -> InstanceReference
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstanceReference
impl Debug for InstanceReference
Source§impl<'de> Deserialize<'de> for InstanceReference
impl<'de> Deserialize<'de> for InstanceReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for InstanceReference
impl Hash for InstanceReference
Source§impl JsonSchema for InstanceReference
impl JsonSchema for InstanceReference
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for InstanceReference
impl PartialEq for InstanceReference
Source§impl Serialize for InstanceReference
impl Serialize for InstanceReference
impl Eq for InstanceReference
Auto Trait Implementations§
impl Freeze for InstanceReference
impl RefUnwindSafe for InstanceReference
impl Send for InstanceReference
impl Sync for InstanceReference
impl Unpin for InstanceReference
impl UnwindSafe for InstanceReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].