pub struct DurableEnvironmentAttachment {
pub authority_binding: String,
pub attachment_id: String,
pub environment_id: String,
pub display_name: Option<String>,
pub scope: DurableEnvironmentScope,
pub status: DurableEnvironmentStatus,
pub revision: u64,
pub updated_at: DateTime<Utc>,
}Expand description
Safe durable projection of an environment attachment.
Fields§
Trusted authority binding owning the record and its idempotency namespace.
attachment_id: StringStable attachment identity.
environment_id: StringPublic, configured environment catalog identity.
display_name: Option<String>Optional reviewed display label; never a provider endpoint or source reference.
scope: DurableEnvironmentScopeAttachment scope.
status: DurableEnvironmentStatusLifecycle state.
revision: u64Monotonic record revision, beginning at one.
updated_at: DateTime<Utc>Last committed mutation time.
Implementations§
Source§impl DurableEnvironmentAttachment
impl DurableEnvironmentAttachment
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate persisted attachment invariants.
§Errors
Returns an error when an identity, display label, scope, or revision is invalid.
Trait Implementations§
Source§impl Clone for DurableEnvironmentAttachment
impl Clone for DurableEnvironmentAttachment
Source§fn clone(&self) -> DurableEnvironmentAttachment
fn clone(&self) -> DurableEnvironmentAttachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DurableEnvironmentAttachment
impl Debug for DurableEnvironmentAttachment
Source§impl<'de> Deserialize<'de> for DurableEnvironmentAttachment
impl<'de> Deserialize<'de> for DurableEnvironmentAttachment
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 DurableEnvironmentAttachment
impl StructuralPartialEq for DurableEnvironmentAttachment
Source§impl VersionedRecord for DurableEnvironmentAttachment
impl VersionedRecord for DurableEnvironmentAttachment
Source§const SCHEMA: &'static str = "starweaver.session.environment_attachment"
const SCHEMA: &'static str = "starweaver.session.environment_attachment"
Stable schema identifier.
Source§const ALLOW_BARE_V0: bool = false
const ALLOW_BARE_V0: bool = false
Whether this record explicitly accepts a previous bare-JSON v0 shape.
Source§fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_version(
version: u32,
payload: Value,
) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode one enveloped payload version. Read more
Source§fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
fn decode_bare_v0(payload: Value) -> Result<Self, VersionedRecordError>where
Self: DeserializeOwned,
Decode the explicitly supported bare-JSON v0 shape. Read more
Auto Trait Implementations§
impl Freeze for DurableEnvironmentAttachment
impl RefUnwindSafe for DurableEnvironmentAttachment
impl Send for DurableEnvironmentAttachment
impl Sync for DurableEnvironmentAttachment
impl Unpin for DurableEnvironmentAttachment
impl UnsafeUnpin for DurableEnvironmentAttachment
impl UnwindSafe for DurableEnvironmentAttachment
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