pub struct OutboxDestinationRef { /* private fields */ }Expand description
Immutable reference to one tenant-owned destination configuration snapshot.
The referenced snapshot contains protocol routing and credential handles; raw credentials must never be embedded in an outbox record. Keeping the digest here prevents a destination update from changing an in-flight delivery’s authority or routing semantics.
Implementations§
Source§impl OutboxDestinationRef
impl OutboxDestinationRef
Sourcepub const fn new(
tenant_id: TenantId,
destination_id: DestinationId,
snapshot_digest: Digest,
) -> Self
pub const fn new( tenant_id: TenantId, destination_id: DestinationId, snapshot_digest: Digest, ) -> Self
Constructs an immutable tenant-scoped destination reference.
Sourcepub const fn destination_id(&self) -> DestinationId
pub const fn destination_id(&self) -> DestinationId
Returns the stable destination identity.
Sourcepub const fn snapshot_digest(&self) -> Digest
pub const fn snapshot_digest(&self) -> Digest
Returns the immutable destination snapshot checksum.
Trait Implementations§
Source§impl Clone for OutboxDestinationRef
impl Clone for OutboxDestinationRef
Source§impl Debug for OutboxDestinationRef
impl Debug for OutboxDestinationRef
Source§impl<'de> Deserialize<'de> for OutboxDestinationRef
impl<'de> Deserialize<'de> for OutboxDestinationRef
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OutboxDestinationRef
Source§impl Hash for OutboxDestinationRef
impl Hash for OutboxDestinationRef
Source§impl JsonSchema for OutboxDestinationRef
impl JsonSchema for OutboxDestinationRef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for OutboxDestinationRef
impl PartialEq for OutboxDestinationRef
Source§impl Serialize for OutboxDestinationRef
impl Serialize for OutboxDestinationRef
impl StructuralPartialEq for OutboxDestinationRef
Auto Trait Implementations§
impl Forget for OutboxDestinationRef
impl Freeze for OutboxDestinationRef
impl Move for OutboxDestinationRef
impl RefUnwindSafe for OutboxDestinationRef
impl Send for OutboxDestinationRef
impl Sync for OutboxDestinationRef
impl Unpin for OutboxDestinationRef
impl UnsafeUnpin for OutboxDestinationRef
impl UnwindSafe for OutboxDestinationRef
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
Mutably borrows from an owned value. Read more