Struct shuttle_common::project::ProjectName
source · pub struct ProjectName(_);Expand description
Project names should conform to valid Host segments (or labels) as per IETF RFC 1123. Initially we’ll implement a strict subset of the IETF RFC 1123, concretely:
- It does not start or end with
-or_. - It does not contain any characters outside of the alphanumeric range, except for
-or ‘_’. - It is not empty.
- It does not contain profanity.
- It is not a reserved word.
Implementations§
Trait Implementations§
source§impl AsRef<String> for ProjectName
impl AsRef<String> for ProjectName
source§impl Clone for ProjectName
impl Clone for ProjectName
source§fn clone(&self) -> ProjectName
fn clone(&self) -> ProjectName
Returns a copy 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 ProjectName
impl Debug for ProjectName
source§impl<'de> Deserialize<'de> for ProjectName
impl<'de> Deserialize<'de> for ProjectName
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 Display for ProjectName
impl Display for ProjectName
source§impl FromStr for ProjectName
impl FromStr for ProjectName
source§impl PartialEq<ProjectName> for ProjectName
impl PartialEq<ProjectName> for ProjectName
source§fn eq(&self, other: &ProjectName) -> bool
fn eq(&self, other: &ProjectName) -> bool
This method tests for
self and other values to be equal, and is used
by ==.