Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "propelauth"
version = "0.3.0"
version = "0.4.0"
authors = ["support@propelauth.com"]
description = "A Rust crate for managing authentication and authorization with support for multi-tenant / B2B products, powered by PropelAuth"
keywords = ["authentication", "auth", "authorization", "b2b", "tenant"]
Expand Down
6 changes: 6 additions & 0 deletions src/models/create_user_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@



use std::collections::HashMap;
use serde_json::Value;

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CreateUserRequest {
#[serde(rename = "email")]
Expand All @@ -27,6 +30,8 @@ pub struct CreateUserRequest {
pub first_name: Option<String>,
#[serde(rename = "last_name", skip_serializing_if = "Option::is_none")]
pub last_name: Option<String>,
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<HashMap<String, Value>>,
}

impl CreateUserRequest {
Expand All @@ -39,6 +44,7 @@ impl CreateUserRequest {
username: None,
first_name: None,
last_name: None,
properties: None,
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/models/migrate_user_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@



use std::collections::HashMap;
use serde_json::Value;

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct MigrateUserRequest {
#[serde(rename = "email")]
Expand All @@ -31,6 +34,8 @@ pub struct MigrateUserRequest {
pub first_name: Option<String>,
#[serde(rename = "last_name", skip_serializing_if = "Option::is_none")]
pub last_name: Option<String>,
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<HashMap<String, Value>>,
}

impl MigrateUserRequest {
Expand All @@ -45,6 +50,7 @@ impl MigrateUserRequest {
username: None,
first_name: None,
last_name: None,
properties: None,
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/models/update_metadata_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub struct UpdateMetadataRequest {
pub picture_url: Option<String>,
#[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
pub metadata: Option<HashMap<String, Value>>,
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<HashMap<String, Value>>,
}

impl UpdateMetadataRequest {
Expand All @@ -37,6 +39,7 @@ impl UpdateMetadataRequest {
last_name: None,
picture_url: None,
metadata: None,
properties: None,
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/models/user_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ pub struct UserMetadata {
pub impersonated_user_id: Option<String>,
#[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
pub metadata: Option<HashMap<String, Value>>,
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<HashMap<String, Value>>,
}

impl UserMetadata {
Expand All @@ -73,6 +75,7 @@ impl UserMetadata {
legacy_user_id: None,
impersonated_user_id: None,
metadata: None,
properties: None,
}
}
}
Expand Down