Struct shuttle_service::ServiceName
source · pub struct ServiceName(_);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<ProjectName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ProjectName, <D as Deserializer<'de>>::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
§type Err = ProjectNameError
type Err = ProjectNameError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ProjectName, <ProjectName as FromStr>::Err>
fn from_str(s: &str) -> Result<ProjectName, <ProjectName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moresource§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 ==.source§impl Serialize for ProjectName
impl Serialize for ProjectName
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ProjectName
impl StructuralEq for ProjectName
impl StructuralPartialEq for ProjectName
Auto Trait Implementations§
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