pub struct UserStep {
pub name: UserName,
pub uid: Option<u32>,
pub group: Option<GroupName>,
pub groups: Vec<GroupName>,
pub home: Option<AbsPath>,
pub shell: Option<AbsPath>,
pub system: bool,
pub password: Option<Password>,
}Expand description
A user step: a local user, created or brought in line, never deleted.
Fields§
§name: UserNameIts name.
uid: Option<u32>Its user id (default: the next free one).
group: Option<GroupName>Its primary group (default: one of its own name, or the system’s default).
groups: Vec<GroupName>The other groups it is a member of ([sudo], [Remote Desktop Users]).
home: Option<AbsPath>Its home folder (absolute; default the system’s).
shell: Option<AbsPath>Its login shell (absolute; /usr/sbin/nologin for a service account).
system: boolA system account (a low id, no ageing): a service’s.
password: Option<Password>Its password, a literal: lab content, written in the generated files (hashed on Linux).
A secret or an input is refused here: a catalogue entry’s users setting takes those.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserStep
impl<'de> Deserialize<'de> for UserStep
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 UserStep
Source§impl JsonSchema for UserStep
impl JsonSchema for UserStep
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for UserStep
Auto Trait Implementations§
impl Freeze for UserStep
impl RefUnwindSafe for UserStep
impl Send for UserStep
impl Sync for UserStep
impl Unpin for UserStep
impl UnsafeUnpin for UserStep
impl UnwindSafe for UserStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.