pub struct PoliciesConfig {
pub terms_of_service: String,
pub privacy: String,
pub last_updated: usize,
}Expand description
Policies config (TOS/privacy)
Fields§
§terms_of_service: StringThe link to your terms of service page.
This is relative to /auth/register on the site.
If your TOS is an HTML file located in ./public, you can put
/public/tos.html here (or something).
privacy: StringThe link to your privacy policy page.
This is relative to /auth/register on the site.
Same deal as terms of service page.
last_updated: usizeThe time (in ms since unix epoch) in which the site’s policies last updated.
This is required to automatically ask users to re-consent to policies.
In user whose consent time in LESS THAN this date will be shown a dialog to re-consent to the policies.
You can get this easily by running echo "console.log(new Date().getTime())" | node.
Trait Implementations§
Source§impl Clone for PoliciesConfig
impl Clone for PoliciesConfig
Source§fn clone(&self) -> PoliciesConfig
fn clone(&self) -> PoliciesConfig
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 PoliciesConfig
impl Debug for PoliciesConfig
Source§impl Default for PoliciesConfig
impl Default for PoliciesConfig
Source§impl<'de> Deserialize<'de> for PoliciesConfig
impl<'de> Deserialize<'de> for PoliciesConfig
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
Auto Trait Implementations§
impl Freeze for PoliciesConfig
impl RefUnwindSafe for PoliciesConfig
impl Send for PoliciesConfig
impl Sync for PoliciesConfig
impl Unpin for PoliciesConfig
impl UnwindSafe for PoliciesConfig
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