diff options
Diffstat (limited to 'crates/sellershut/src/entity/user.rs')
-rw-r--r-- | crates/sellershut/src/entity/user.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/sellershut/src/entity/user.rs b/crates/sellershut/src/entity/user.rs index 1abf50f..b420682 100644 --- a/crates/sellershut/src/entity/user.rs +++ b/crates/sellershut/src/entity/user.rs @@ -213,6 +213,12 @@ pub struct Person { image: Option<Url>, } +impl Person { + pub fn public_id(&self) -> &str { + &self.public_key.id + } +} + #[async_trait] impl Object for User { #[doc = " App data type passed to handlers. Must be identical to"] |