pub struct ManifestAuthUserConfig {
pub entity: String,
pub expose: Vec<String>,
pub hide: Vec<String>,
}Fields§
§entity: StringManifest entity name pylon treats as the User table.
Default "User" — the convention every existing pylon app
already follows.
expose: Vec<String>Optional allowlist of fields exposed via /api/auth/session.
When set, ONLY these fields appear in the response (id is
always included). Useful for apps that want strict schemas.
hide: Vec<String>Additional fields to strip from the User row before responding.
Combined with the framework defaults (passwordHash plus
anything starting with _). Use this for app-specific
secrets stored on the User row.
Trait Implementations§
Source§impl Clone for ManifestAuthUserConfig
impl Clone for ManifestAuthUserConfig
Source§fn clone(&self) -> ManifestAuthUserConfig
fn clone(&self) -> ManifestAuthUserConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManifestAuthUserConfig
impl Debug for ManifestAuthUserConfig
Source§impl Default for ManifestAuthUserConfig
impl Default for ManifestAuthUserConfig
Source§impl<'de> Deserialize<'de> for ManifestAuthUserConfig
impl<'de> Deserialize<'de> for ManifestAuthUserConfig
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 ManifestAuthUserConfig
impl PartialEq for ManifestAuthUserConfig
Source§impl Serialize for ManifestAuthUserConfig
impl Serialize for ManifestAuthUserConfig
impl Eq for ManifestAuthUserConfig
impl StructuralPartialEq for ManifestAuthUserConfig
Auto Trait Implementations§
impl Freeze for ManifestAuthUserConfig
impl RefUnwindSafe for ManifestAuthUserConfig
impl Send for ManifestAuthUserConfig
impl Sync for ManifestAuthUserConfig
impl Unpin for ManifestAuthUserConfig
impl UnsafeUnpin for ManifestAuthUserConfig
impl UnwindSafe for ManifestAuthUserConfig
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