Struct mpot::PostPolicy
source · pub struct PostPolicy {
pub pk: i64,
pub list: i64,
pub announce_only: bool,
pub subscription_only: bool,
pub approval_needed: bool,
pub open: bool,
pub custom: bool,
}
Expand description
A mailing list post policy entry.
Only one of the boolean flags must be set to true.
Fields§
§pk: i64
Database primary key.
list: i64
Mailing list foreign key (See MailingList
).
announce_only: bool
Whether the policy is announce only (Only list owners can submit posts, and everyone will receive them).
subscription_only: bool
Whether the policy is “subscription only” (Only list subscriptions can post).
approval_needed: bool
Whether the policy is “approval needed” (Anyone can post, but approval from list owners is required if they are not subscribed).
open: bool
Whether the policy is “open” (Anyone can post, but approval from list owners is required. Subscriptions are not enabled).
custom: bool
Custom policy.
Trait Implementations§
source§impl Clone for PostPolicy
impl Clone for PostPolicy
source§fn clone(&self) -> PostPolicy
fn clone(&self) -> PostPolicy
Returns a copy 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 PostPolicy
impl Debug for PostPolicy
source§impl<'de> Deserialize<'de> for PostPolicy
impl<'de> Deserialize<'de> for PostPolicy
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PostPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<PostPolicy, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PostPolicy
impl Display for PostPolicy
source§impl Serialize for PostPolicy
impl Serialize for PostPolicy
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more