pub struct ProvisionedPreview {
pub name: String,
pub url: String,
pub auth: Option<bool>,
}Expand description
A preview as provisioned by a remote workspace provider (ticket
workspace-remote-coder-provider), recorded on workspace.provisioned:
the URL the SUBSTRATE reported for a contract previews[] entry
(name-matched — never fabricated), plus whether the substrate reports
the URL is fronted with auth (design D-E: previews authenticated by
default — recorded, never disabled by the adapter).
Fields§
§name: String§url: String§auth: Option<bool>Substrate-reported auth fronting; absent when the substrate did not say (never read as “no auth” — consumers must degrade on absent).
Trait Implementations§
Source§impl Clone for ProvisionedPreview
impl Clone for ProvisionedPreview
Source§fn clone(&self) -> ProvisionedPreview
fn clone(&self) -> ProvisionedPreview
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 ProvisionedPreview
impl Debug for ProvisionedPreview
Source§impl Default for ProvisionedPreview
impl Default for ProvisionedPreview
Source§fn default() -> ProvisionedPreview
fn default() -> ProvisionedPreview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProvisionedPreviewwhere
ProvisionedPreview: Default,
impl<'de> Deserialize<'de> for ProvisionedPreviewwhere
ProvisionedPreview: Default,
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 ProvisionedPreview
Source§impl PartialEq for ProvisionedPreview
impl PartialEq for ProvisionedPreview
Source§impl Serialize for ProvisionedPreview
impl Serialize for ProvisionedPreview
impl StructuralPartialEq for ProvisionedPreview
Auto Trait Implementations§
impl Freeze for ProvisionedPreview
impl RefUnwindSafe for ProvisionedPreview
impl Send for ProvisionedPreview
impl Sync for ProvisionedPreview
impl Unpin for ProvisionedPreview
impl UnsafeUnpin for ProvisionedPreview
impl UnwindSafe for ProvisionedPreview
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