pub struct GetEmbedExternalViewOutput<S: BosStr = DefaultStr> {
pub associated_records: Option<Vec<Data<S>>>,
pub associated_refs: Option<Vec<StrongRef<S>>>,
pub view: Option<View<S>>,
pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}Fields§
§associated_records: Option<Vec<Data<S>>>§associated_refs: Option<Vec<StrongRef<S>>>StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post’s external.associatedRefs.
view: Option<View<S>>Hydrated view of the embed. Present only when the resolved records back the requested URL and supply enough information to populate the required viewExternal fields. Omitted alongside the rest of the response when no records resolved or validation failed.
extra_data: Option<BTreeMap<SmolStr, Data<S>>>Trait Implementations§
Source§impl<S: Clone + BosStr> Clone for GetEmbedExternalViewOutput<S>
impl<S: Clone + BosStr> Clone for GetEmbedExternalViewOutput<S>
Source§fn clone(&self) -> GetEmbedExternalViewOutput<S>
fn clone(&self) -> GetEmbedExternalViewOutput<S>
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<S: Default + BosStr> Default for GetEmbedExternalViewOutput<S>
impl<S: Default + BosStr> Default for GetEmbedExternalViewOutput<S>
Source§fn default() -> GetEmbedExternalViewOutput<S>
fn default() -> GetEmbedExternalViewOutput<S>
Returns the “default value” for a type. Read more
Source§impl<'de, S> Deserialize<'de> for GetEmbedExternalViewOutput<S>where
S: Deserialize<'de> + BosStr,
impl<'de, S> Deserialize<'de> for GetEmbedExternalViewOutput<S>where
S: Deserialize<'de> + BosStr,
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<S: Eq + BosStr> Eq for GetEmbedExternalViewOutput<S>
Source§impl<S: BosStr + IntoStatic> IntoStatic for GetEmbedExternalViewOutput<S>
impl<S: BosStr + IntoStatic> IntoStatic for GetEmbedExternalViewOutput<S>
Source§type Output = GetEmbedExternalViewOutput<<S as IntoStatic>::Output>
type Output = GetEmbedExternalViewOutput<<S as IntoStatic>::Output>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> Self::Output
fn into_static(self) -> Self::Output
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<S: PartialEq + BosStr> PartialEq for GetEmbedExternalViewOutput<S>
impl<S: PartialEq + BosStr> PartialEq for GetEmbedExternalViewOutput<S>
Source§fn eq(&self, other: &GetEmbedExternalViewOutput<S>) -> bool
fn eq(&self, other: &GetEmbedExternalViewOutput<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S> Serialize for GetEmbedExternalViewOutput<S>
impl<S> Serialize for GetEmbedExternalViewOutput<S>
impl<S: BosStr> StructuralPartialEq for GetEmbedExternalViewOutput<S>
Auto Trait Implementations§
impl<S> Freeze for GetEmbedExternalViewOutput<S>where
S: Freeze,
impl<S> RefUnwindSafe for GetEmbedExternalViewOutput<S>where
S: RefUnwindSafe,
impl<S> Send for GetEmbedExternalViewOutput<S>where
S: Send,
impl<S> Sync for GetEmbedExternalViewOutput<S>where
S: Sync,
impl<S> Unpin for GetEmbedExternalViewOutput<S>where
S: Unpin,
impl<S> UnsafeUnpin for GetEmbedExternalViewOutput<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for GetEmbedExternalViewOutput<S>where
S: UnwindSafe + RefUnwindSafe,
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§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.