Skip to content

Commit b62986f

Browse files
chore: add ProjectTelemetryConfig variant to ResourceTypeBeta enum
1 parent 49d5d57 commit b62986f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

common/src/resource.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ pub enum ResourceTypeBeta {
182182
#[strum(to_string = "database::aws_rds::mariadb")]
183183
#[serde(rename = "database::aws_rds::mariadb")]
184184
DatabaseAwsRdsMariaDB,
185+
/// Project-specific telemetry configuration data
186+
#[strum(to_string = "project::telemetry::config")]
187+
#[serde(rename = "project::telemetry::config")]
188+
ProjectTelemetryConfig,
185189
/// (Will probably be removed)
186190
#[strum(to_string = "secrets")]
187191
#[serde(rename = "secrets")]
@@ -285,16 +289,16 @@ mod _sqlx {
285289
}
286290
}
287291

288-
impl<DB: sqlx::Database> sqlx::Type<DB> for ResourceState
292+
impl<DB: Database> sqlx::Type<DB> for ResourceState
289293
where
290294
str: sqlx::Type<DB>,
291295
{
292-
fn type_info() -> <DB as sqlx::Database>::TypeInfo {
296+
fn type_info() -> <DB as Database>::TypeInfo {
293297
<str as sqlx::Type<DB>>::type_info()
294298
}
295299
}
296300

297-
impl sqlx::Encode<'_, sqlx::Postgres> for ResourceState {
301+
impl sqlx::Encode<'_, Postgres> for ResourceState {
298302
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> sqlx::encode::IsNull {
299303
#[allow(clippy::needless_borrows_for_generic_args)]
300304
<&str as sqlx::Encode<Postgres>>::encode(&self.to_string(), buf)

0 commit comments

Comments
 (0)