pub struct Agent {Show 14 fields
pub agentid: i32,
pub name: String,
pub round_logo_url: Option<String>,
pub square_logo_url: Option<String>,
pub edition_id: Option<String>,
pub edition_name: Option<String>,
pub app_status: Option<u8>,
pub auth_mode: Option<u8>,
pub is_customized_app: Option<bool>,
pub is_virtual_version: Option<bool>,
pub is_shared_from_other_corp: Option<bool>,
pub user_limit: Option<i32>,
pub expired_time: Option<i64>,
pub privilege: Option<Privilege>,
}Fields§
§agentid: i32§name: String§round_logo_url: Option<String>§square_logo_url: Option<String>§edition_id: Option<String>版本id
edition_name: Option<String>版本名称
app_status: Option<u8>付费状态
- 0-没有付费;
- 1-限时试用;
- 2-试用过期;
- 3-购买期内;
- 4-购买过期;
- 5-不限时试用;
- 6-购买期内,但是人数超标, 注意,超标后还可以用7天;
- 7-购买期内,但是人数超标, 且已经超标试用7天
auth_mode: Option<u8>授权模式,0为管理员授权;1为成员授权
is_customized_app: Option<bool>是否为代开发自建应用
is_virtual_version: Option<bool>是否虚拟版本
是否由互联企业分享安装。详见 企业互联
user_limit: Option<i32>用户上限。
特别注意, 以下情况该字段无意义,可以忽略:
- 1. 固定总价购买
- 2. app_status = 限时试用/试用过期/不限时试用
- 3. 在第2条“app_status=不限时试用”的情况下,如果该应用的配置为“小企业无使用限制”,user_limit有效,且为限制的人数
expired_time: Option<i64>版本到期时间, 秒级时间戳, 根据需要自行乘以1000(根据购买版本,可能是试用到期时间或付费使用到期时间)。
特别注意,以下情况该字段无意义,可以忽略:
- 1. app_status = 不限时试用
privilege: Option<Privilege>应用权限
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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
impl Eq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.