Struct shuttle_common::project::ProjectName
source · pub struct ProjectName(/* private fields */);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 for ProjectName
impl PartialEq 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 ==.source§impl Serialize for ProjectName
impl Serialize for ProjectName
impl Eq for ProjectName
impl StructuralPartialEq for ProjectName
Auto Trait Implementations§
impl Freeze for ProjectName
impl RefUnwindSafe for ProjectName
impl Send for ProjectName
impl Sync for ProjectName
impl Unpin for ProjectName
impl UnwindSafe for ProjectName
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)