pub struct Generator<'a> {
pub accepts_interactions: Option<bool>,
pub avatar: Option<BlobRef<'a>>,
pub content_mode: Option<GeneratorContentMode<'a>>,
pub created_at: Datetime,
pub description: Option<CowStr<'a>>,
pub description_facets: Option<Vec<Facet<'a>>>,
pub did: Did<'a>,
pub display_name: CowStr<'a>,
pub labels: Option<SelfLabels<'a>>,
pub extra_data: Option<BTreeMap<SmolStr, Data<'a>>>,
}Expand description
Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository.
Fields§
§accepts_interactions: Option<bool>Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions
avatar: Option<BlobRef<'a>>§content_mode: Option<GeneratorContentMode<'a>>§created_at: Datetime§description: Option<CowStr<'a>>§description_facets: Option<Vec<Facet<'a>>>§did: Did<'a>§display_name: CowStr<'a>§labels: Option<SelfLabels<'a>>Self-label values
extra_data: Option<BTreeMap<SmolStr, Data<'a>>>Implementations§
Trait Implementations§
Source§impl Collection for Generator<'_>
impl Collection for Generator<'_>
Source§const NSID: &'static str = "app.bsky.feed.generator"
const NSID: &'static str = "app.bsky.feed.generator"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = GeneratorRecord
type Record = GeneratorRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by AgentSessionExt::get_record to return properly typed responses.Source§impl<'de: 'a, 'a> Deserialize<'de> for Generator<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Generator<'a>
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
Source§impl From<GeneratorGetRecordOutput<'_>> for Generator<'_>
impl From<GeneratorGetRecordOutput<'_>> for Generator<'_>
Source§fn from(output: GeneratorGetRecordOutput<'_>) -> Self
fn from(output: GeneratorGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for Generator<'a>
impl<'a> IntoStatic for Generator<'a>
Source§impl<'a> LexiconSchema for Generator<'a>
impl<'a> LexiconSchema for Generator<'a>
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
impl<'a> Eq for Generator<'a>
impl<'a> StructuralPartialEq for Generator<'a>
Auto Trait Implementations§
impl<'a> Freeze for Generator<'a>
impl<'a> RefUnwindSafe for Generator<'a>
impl<'a> Send for Generator<'a>
impl<'a> Sync for Generator<'a>
impl<'a> Unpin for Generator<'a>
impl<'a> UnsafeUnpin for Generator<'a>
impl<'a> UnwindSafe for Generator<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.