Skip to main content

PreviewDigestInput

Struct PreviewDigestInput 

Source
pub struct PreviewDigestInput<'input> {
    pub publication: &'input PublicationSettings,
    pub site_assets: &'input ResolvedSiteAssets,
    pub post_id: &'input PostId,
    pub post_revision: &'input PostRevisionDigest,
    pub post_renderer: &'input PostRendererIdentity,
    pub article_identity_html: &'input [u8],
    pub site_renderer: &'input SiteShellRendererIdentity,
    pub pre_injection_post_shell: &'input [u8],
    pub response_policy: &'input [u8],
    pub profile_projection: &'input [u8],
    pub canonical_url: &'input str,
}
Expand description

Renderer-owned inputs to one preview approval binding.

Fields§

§publication: &'input PublicationSettings§site_assets: &'input ResolvedSiteAssets§post_id: &'input PostId§post_revision: &'input PostRevisionDigest§post_renderer: &'input PostRendererIdentity§article_identity_html: &'input [u8]§site_renderer: &'input SiteShellRendererIdentity§pre_injection_post_shell: &'input [u8]§response_policy: &'input [u8]

Exact public response policy approved with the presentation.

§profile_projection: &'input [u8]

Opaque, canonical bytes for the SQLite-owned public profile projection.

The profile domain owns this encoding. The identity layer only frames it into the versioned preview transcript.

§canonical_url: &'input str

Auto Trait Implementations§

§

impl<'input> Freeze for PreviewDigestInput<'input>

§

impl<'input> RefUnwindSafe for PreviewDigestInput<'input>

§

impl<'input> Send for PreviewDigestInput<'input>

§

impl<'input> Sync for PreviewDigestInput<'input>

§

impl<'input> Unpin for PreviewDigestInput<'input>

§

impl<'input> UnsafeUnpin for PreviewDigestInput<'input>

§

impl<'input> UnwindSafe for PreviewDigestInput<'input>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.