pub struct ServiceAccountName(/* private fields */);Expand description
A Unix service-account name, as passed to getpwnam(3).
Limits: 1–32 bytes, ASCII graphic characters only, and none of
:, /, or whitespace (the passwd-database separators). macOS
underscore-prefixed accounts (_mydaemon) are valid.
Implementations§
Source§impl ServiceAccountName
impl ServiceAccountName
Sourcepub fn try_new(name: impl Into<String>) -> Result<Self, InvalidServiceValue>
pub fn try_new(name: impl Into<String>) -> Result<Self, InvalidServiceValue>
Validate and wrap a service-account name.
§Errors
Returns InvalidServiceValue when the name is empty, longer
than 32 bytes, or contains a non-graphic ASCII byte, :, or
/.
Trait Implementations§
Source§impl AsRef<str> for ServiceAccountName
impl AsRef<str> for ServiceAccountName
Source§impl Clone for ServiceAccountName
impl Clone for ServiceAccountName
Source§impl Debug for ServiceAccountName
impl Debug for ServiceAccountName
Source§impl Display for ServiceAccountName
impl Display for ServiceAccountName
impl Eq for ServiceAccountName
Source§impl FromStr for ServiceAccountName
impl FromStr for ServiceAccountName
Source§impl Hash for ServiceAccountName
impl Hash for ServiceAccountName
Source§impl PartialEq for ServiceAccountName
impl PartialEq for ServiceAccountName
impl StructuralPartialEq for ServiceAccountName
Auto Trait Implementations§
impl Freeze for ServiceAccountName
impl RefUnwindSafe for ServiceAccountName
impl Send for ServiceAccountName
impl Sync for ServiceAccountName
impl Unpin for ServiceAccountName
impl UnsafeUnpin for ServiceAccountName
impl UnwindSafe for ServiceAccountName
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