mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-01-03 17:38:50 +00:00
22 lines
474 B
Rust
22 lines
474 B
Rust
|
//! # Post
|
||
|
//!
|
||
|
//! @author Pierre Hubert
|
||
|
|
||
|
#[allow(non_camel_case_types)]
|
||
|
pub enum PostVisibilityLevel {
|
||
|
//Posts that can be seen by anyone
|
||
|
VISIBILITY_PUBLIC = 1,
|
||
|
|
||
|
//Posts that can be seen by the friends of the user
|
||
|
VISIBILITY_FRIENDS = 2,
|
||
|
|
||
|
//Posts that can be seen by the user only
|
||
|
VISIBILITY_USER = 3,
|
||
|
|
||
|
//Posts that can be seen by the members of a group (same as friends)
|
||
|
VISIBILITY_GROUP_MEMBERS = 50,
|
||
|
}
|
||
|
|
||
|
pub struct Post {
|
||
|
pub id: u64
|
||
|
}
|