Compare commits
No commits in common. "bf94b9c04c76ac08fa5d072e790680f1089901ef" and "a8b747f1ef4b9e85bbdd252f3ba0878b2d221dcf" have entirely different histories.
bf94b9c04c
...
a8b747f1ef
|
@ -171,8 +171,6 @@ fn compare_permission_overwrites(
|
||||||
///
|
///
|
||||||
/// # Reference
|
/// # Reference
|
||||||
/// See <https://discord-userdoccers.vercel.app/resources/channel#forum-tag-object>
|
/// See <https://discord-userdoccers.vercel.app/resources/channel#forum-tag-object>
|
||||||
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
|
|
||||||
#[cfg_attr(feature = "sqlx", sqlx(type_name = "interface_type"))]
|
|
||||||
pub struct Tag {
|
pub struct Tag {
|
||||||
pub id: Snowflake,
|
pub id: Snowflake,
|
||||||
/// The name of the tag (max 20 characters)
|
/// The name of the tag (max 20 characters)
|
||||||
|
@ -319,8 +317,6 @@ impl PartialEq for ThreadMember {
|
||||||
///
|
///
|
||||||
/// # Reference
|
/// # Reference
|
||||||
/// See <https://discord-userdoccers.vercel.app/resources/channel#default-reaction-object>
|
/// See <https://discord-userdoccers.vercel.app/resources/channel#default-reaction-object>
|
||||||
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
|
|
||||||
#[cfg_attr(feature = "sqlx", sqlx(type_name = "interface_type"))]
|
|
||||||
pub struct DefaultReaction {
|
pub struct DefaultReaction {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub emoji_id: Option<Snowflake>,
|
pub emoji_id: Option<Snowflake>,
|
||||||
|
|
|
@ -130,8 +130,7 @@ impl Default for UserSettings {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
|
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow))]
|
||||||
#[cfg_attr(feature = "sqlx", sqlx(type_name = "interface_type"))]
|
|
||||||
pub struct CustomStatus {
|
pub struct CustomStatus {
|
||||||
pub emoji_id: Option<String>,
|
pub emoji_id: Option<String>,
|
||||||
pub emoji_name: Option<String>,
|
pub emoji_name: Option<String>,
|
||||||
|
@ -141,7 +140,7 @@ pub struct CustomStatus {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Copy, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Copy, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
|
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow))]
|
||||||
pub struct FriendSourceFlags {
|
pub struct FriendSourceFlags {
|
||||||
pub all: bool,
|
pub all: bool,
|
||||||
}
|
}
|
||||||
|
@ -153,8 +152,7 @@ impl Default for FriendSourceFlags {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow, sqlx::Type))]
|
#[cfg_attr(feature = "sqlx", derive(sqlx::FromRow))]
|
||||||
#[cfg_attr(feature = "sqlx", sqlx(type_name = "interface_type"))]
|
|
||||||
pub struct GuildFolder {
|
pub struct GuildFolder {
|
||||||
#[cfg(not(feature = "sqlx"))]
|
#[cfg(not(feature = "sqlx"))]
|
||||||
pub color: Option<u32>,
|
pub color: Option<u32>,
|
||||||
|
|
|
@ -102,13 +102,6 @@ impl sqlx::Type<sqlx::Postgres> for Snowflake {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "sqlx")]
|
|
||||||
impl sqlx::postgres::PgHasArrayType for Snowflake {
|
|
||||||
fn array_type_info() -> sqlx::postgres::PgTypeInfo {
|
|
||||||
<Vec<String> as sqlx::Type<sqlx::Postgres>>::type_info()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "sqlx")]
|
#[cfg(feature = "sqlx")]
|
||||||
impl<'q> sqlx::Encode<'q, sqlx::Postgres> for Snowflake {
|
impl<'q> sqlx::Encode<'q, sqlx::Postgres> for Snowflake {
|
||||||
fn encode_by_ref(
|
fn encode_by_ref(
|
||||||
|
|
Loading…
Reference in New Issue