IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0.0b2
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

Passwd

struct Passwd

Represents user account information retrieved from the user password database related to a user ID.

Fields

  • pw_name (String): User name.
  • pw_passwd (String): User password.
  • pw_uid (Int): User ID.
  • pw_gid (Int): Group ID.
  • pw_gecos (String): Real name or comment field.
  • pw_dir (String): Home directory.
  • pw_shell (String): Shell program.

Implemented traits

AnyType, Copyable, ImplicitlyDeletable, Movable, Writable

Methods

write_to

def write_to(self, mut writer: T)

Formats this string to the provided Writer.

Args:

  • writer (T): The object to write to.