Skip to main content

gitea_sdk_rs/options/org/
activity.rs

1// Copyright 2026 infinitete. All rights reserved.
2// Use of this source code is governed by a MIT-style
3// license that can be found in the LICENSE file.
4
5use crate::pagination::{ListOptions, QueryEncode};
6
7// ── org_member.go ───────────────────────────────────────────────────────
8
9#[derive(Debug, Clone, Default)]
10pub struct ListOrgMembershipOption {
11    pub list_options: ListOptions,
12}
13
14impl QueryEncode for ListOrgMembershipOption {
15    fn query_encode(&self) -> String {
16        self.list_options.query_encode()
17    }
18}
19
20// ── org_block.go ────────────────────────────────────────────────────────
21
22#[derive(Debug, Clone, Default)]
23pub struct ListOrgBlocksOptions {
24    pub list_options: ListOptions,
25}
26
27impl QueryEncode for ListOrgBlocksOptions {
28    fn query_encode(&self) -> String {
29        self.list_options.query_encode()
30    }
31}