pub struct WorkspaceBinding {
pub provider_id: WorkspaceProviderId,
pub workspace_id: WorkspaceId,
pub head_id: WorkspaceHeadId,
pub access: WorkspaceHeadAccess,
pub payload: Vec<u8>,
}Expand description
Provider-owned data sufficient to reopen the exact recorded head.
Callers persist this value opaquely. Providers must not place credentials
in payload; local persistence intentionally stores it as plain data.
Fields§
§provider_id: WorkspaceProviderId§workspace_id: WorkspaceId§head_id: WorkspaceHeadId§access: WorkspaceHeadAccess§payload: Vec<u8>Implementations§
Source§impl WorkspaceBinding
impl WorkspaceBinding
Sourcepub const MAX_PAYLOAD_BYTES: usize
pub const MAX_PAYLOAD_BYTES: usize
Maximum provider payload accepted by Framework persistence.
pub fn validate(&self) -> Result<(), WorkspaceError>
Trait Implementations§
Source§impl Clone for WorkspaceBinding
impl Clone for WorkspaceBinding
Source§fn clone(&self) -> WorkspaceBinding
fn clone(&self) -> WorkspaceBinding
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 WorkspaceBinding
impl Debug for WorkspaceBinding
Source§impl<'de> Deserialize<'de> for WorkspaceBinding
impl<'de> Deserialize<'de> for WorkspaceBinding
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 WorkspaceBinding
Source§impl PartialEq for WorkspaceBinding
impl PartialEq for WorkspaceBinding
Source§impl Serialize for WorkspaceBinding
impl Serialize for WorkspaceBinding
impl StructuralPartialEq for WorkspaceBinding
Auto Trait Implementations§
impl Freeze for WorkspaceBinding
impl RefUnwindSafe for WorkspaceBinding
impl Send for WorkspaceBinding
impl Sync for WorkspaceBinding
impl Unpin for WorkspaceBinding
impl UnsafeUnpin for WorkspaceBinding
impl UnwindSafe for WorkspaceBinding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.