pub struct ViewExternal<S: BosStr = DefaultStr> {
pub associated_profiles: Option<Vec<ProfileViewBasic<S>>>,
pub associated_refs: Option<Vec<StrongRef<S>>>,
pub created_at: Option<Datetime>,
pub description: S,
pub labels: Option<Vec<Label<S>>>,
pub reading_time: Option<i64>,
pub source: Option<ViewExternalSource<S>>,
pub thumb: Option<UriValue<S>>,
pub title: S,
pub updated_at: Option<Datetime>,
pub uri: UriValue<S>,
pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}Fields§
§associated_profiles: Option<Vec<ProfileViewBasic<S>>>Profiles of the owners of the Atmosphere records that backed this view.
associated_refs: Option<Vec<StrongRef<S>>>StrongRefs (uri+cid) of the Atmosphere records that backed this view.
created_at: Option<Datetime>When the external content was created, if available. Example: a publication date, for an article.
description: S§labels: Option<Vec<Label<S>>>§reading_time: Option<i64>Estimated reading time in minutes, if applicable and available.
source: Option<ViewExternalSource<S>>§thumb: Option<UriValue<S>>§title: S§updated_at: Option<Datetime>When the external content was updated, if available.
uri: UriValue<S>§extra_data: Option<BTreeMap<SmolStr, Data<S>>>Implementations§
Source§impl ViewExternal<DefaultStr>
impl ViewExternal<DefaultStr>
Sourcepub fn new() -> ViewExternalBuilder<Empty, DefaultStr>
pub fn new() -> ViewExternalBuilder<Empty, DefaultStr>
Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
Source§impl<S: BosStr> ViewExternal<S>
impl<S: BosStr> ViewExternal<S>
Sourcepub fn builder() -> ViewExternalBuilder<Empty, S>
pub fn builder() -> ViewExternalBuilder<Empty, S>
Create a new builder for this type
Trait Implementations§
Source§impl<S: Clone + BosStr> Clone for ViewExternal<S>
impl<S: Clone + BosStr> Clone for ViewExternal<S>
Source§fn clone(&self) -> ViewExternal<S>
fn clone(&self) -> ViewExternal<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<'de, S> Deserialize<'de> for ViewExternal<S>where
S: Deserialize<'de> + BosStr,
impl<'de, S> Deserialize<'de> for ViewExternal<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 ViewExternal<S>
Source§impl<S: BosStr + IntoStatic> IntoStatic for ViewExternal<S>
impl<S: BosStr + IntoStatic> IntoStatic for ViewExternal<S>
Source§type Output = ViewExternal<<S as IntoStatic>::Output>
type Output = ViewExternal<<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: BosStr> LexiconSchema for ViewExternal<S>
impl<S: BosStr> LexiconSchema for ViewExternal<S>
Source§fn lexicon_doc() -> LexiconDoc<'static>
fn lexicon_doc() -> LexiconDoc<'static>
Generate the lexicon document for this type Read more
Source§fn validate(&self) -> Result<(), ConstraintError>
fn validate(&self) -> Result<(), ConstraintError>
Validate an instance against lexicon constraints Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether this type should be inlined vs referenced Read more
Source§impl<S: PartialEq + BosStr> PartialEq for ViewExternal<S>
impl<S: PartialEq + BosStr> PartialEq for ViewExternal<S>
Source§fn eq(&self, other: &ViewExternal<S>) -> bool
fn eq(&self, other: &ViewExternal<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S> Serialize for ViewExternal<S>
impl<S> Serialize for ViewExternal<S>
impl<S: BosStr> StructuralPartialEq for ViewExternal<S>
Auto Trait Implementations§
impl<S> Freeze for ViewExternal<S>where
S: Freeze,
impl<S> RefUnwindSafe for ViewExternal<S>where
S: RefUnwindSafe,
impl<S> Send for ViewExternal<S>where
S: Send,
impl<S> Sync for ViewExternal<S>where
S: Sync,
impl<S> Unpin for ViewExternal<S>where
S: Unpin,
impl<S> UnsafeUnpin for ViewExternal<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ViewExternal<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.