add: circle stacks
This commit is contained in:
parent
50704d27a9
commit
56cea83933
27 changed files with 419 additions and 107 deletions
|
@ -260,10 +260,10 @@ pub struct Post {
|
|||
pub title: String,
|
||||
/// If the post is "open". Posts can act as tickets in a forge community.
|
||||
pub is_open: bool,
|
||||
/// The ID of the circle this post belongs to. 0 means no circle is connected.
|
||||
/// The ID of the stack this post belongs to. 0 means no stack is connected.
|
||||
///
|
||||
/// If circle is not 0, community should be 0 (and vice versa).
|
||||
pub circle: usize,
|
||||
/// If stack is not 0, community should be 0 (and vice versa).
|
||||
pub stack: usize,
|
||||
}
|
||||
|
||||
impl Post {
|
||||
|
@ -291,7 +291,7 @@ impl Post {
|
|||
poll_id,
|
||||
title: String::new(),
|
||||
is_open: true,
|
||||
circle: 0,
|
||||
stack: 0,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue