Struct lemmy_db_schema::source::site::Site
source · pub struct Site {Show 15 fields
pub id: SiteId,
pub name: String,
pub sidebar: Option<String>,
pub published: DateTime<Utc>,
pub updated: Option<DateTime<Utc>>,
pub icon: Option<DbUrl>,
pub banner: Option<DbUrl>,
pub description: Option<String>,
pub actor_id: DbUrl,
pub last_refreshed_at: DateTime<Utc>,
pub inbox_url: DbUrl,
pub private_key: Option<SensitiveString>,
pub public_key: String,
pub instance_id: InstanceId,
pub content_warning: Option<String>,
}
Expand description
The site.
Fields§
§id: SiteId
§name: String
A sidebar for the site in markdown.
published: DateTime<Utc>
§updated: Option<DateTime<Utc>>
§icon: Option<DbUrl>
An icon URL.
A banner url.
description: Option<String>
A shorter, one-line description of the site.
actor_id: DbUrl
The federated actor_id.
last_refreshed_at: DateTime<Utc>
The time the site was last refreshed.
inbox_url: DbUrl
The site inbox
private_key: Option<SensitiveString>
§public_key: String
§instance_id: InstanceId
§content_warning: Option<String>
If present, nsfw content is visible by default. Should be displayed by frontends/clients when the site is first opened by a user.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Site
impl<'de> Deserialize<'de> for Site
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 PartialEq for Site
impl PartialEq for Site
impl Eq for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
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