pub struct RobotCreate {
pub name: Option<String>,
pub description: Option<String>,
pub secret: Option<String>,
pub level: Option<String>,
pub disable: Option<bool>,
pub duration: Option<i64>,
pub permissions: Option<Vec<RobotPermission>>,
}Expand description
RobotCreate : The request for robot account creation.
Fields§
§name: Option<String>The name of the robot
description: Option<String>The description of the robot
secret: Option<String>The secret of the robot
level: Option<String>The level of the robot, project or system
disable: Option<bool>The disable status of the robot
duration: Option<i64>The duration of the robot in days, duration must be either -1(Never) or a positive integer
permissions: Option<Vec<RobotPermission>>Implementations§
Source§impl RobotCreate
impl RobotCreate
Sourcepub fn new() -> RobotCreate
pub fn new() -> RobotCreate
The request for robot account creation.
Trait Implementations§
Source§impl Clone for RobotCreate
impl Clone for RobotCreate
Source§fn clone(&self) -> RobotCreate
fn clone(&self) -> RobotCreate
Returns a duplicate 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 RobotCreate
impl Debug for RobotCreate
Source§impl Default for RobotCreate
impl Default for RobotCreate
Source§fn default() -> RobotCreate
fn default() -> RobotCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RobotCreate
impl<'de> Deserialize<'de> for RobotCreate
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
Source§impl PartialEq for RobotCreate
impl PartialEq for RobotCreate
Source§impl Serialize for RobotCreate
impl Serialize for RobotCreate
impl StructuralPartialEq for RobotCreate
Auto Trait Implementations§
impl Freeze for RobotCreate
impl RefUnwindSafe for RobotCreate
impl Send for RobotCreate
impl Sync for RobotCreate
impl Unpin for RobotCreate
impl UnwindSafe for RobotCreate
Blanket Implementations§
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