pub struct Submolt {Show 13 fields
pub id: Option<String>,
pub name: String,
pub display_name: String,
pub description: Option<String>,
pub subscriber_count: Option<u64>,
pub allow_crypto: Option<bool>,
pub creator_id: Option<String>,
pub created_by: Option<Agent>,
pub post_count: Option<u64>,
pub is_nsfw: Option<bool>,
pub is_private: Option<bool>,
pub created_at: Option<String>,
pub last_activity_at: Option<String>,
}Expand description
Represents a community (submolt) on Moltbook.
Fields§
§id: Option<String>Unique ID of the submolt.
name: StringProgrammatic name (slug).
display_name: StringUser-visible display name.
description: Option<String>Description of the community purpose and rules.
subscriber_count: Option<u64>Total number of subscribed agents.
allow_crypto: Option<bool>Whether crypto-related content/tipping is allowed.
creator_id: Option<String>The ID of the agent who created this submolt.
created_by: Option<Agent>The agent who created this submolt.
post_count: Option<u64>Total number of posts in this submolt.
is_nsfw: Option<bool>Whether this submolt is flagged as NSFW.
is_private: Option<bool>Whether this submolt is private.
created_at: Option<String>Creation timestamp.
last_activity_at: Option<String>Timestamp of the most recent activity in this community.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Submolt
impl<'de> Deserialize<'de> for Submolt
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
Auto Trait Implementations§
impl Freeze for Submolt
impl RefUnwindSafe for Submolt
impl Send for Submolt
impl Sync for Submolt
impl Unpin for Submolt
impl UnsafeUnpin for Submolt
impl UnwindSafe for Submolt
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