pub struct ProjectSlug(/* private fields */);Expand description
A URL- and path-safe project identifier (e.g. "demo", "PROJ-A").
Validated to contain only [A-Za-z0-9._-] and to be 1-64 chars long. This guarantees we can
safely render it as a directory name in the cache-materialized tree without path-traversal risk.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectSlug
impl Clone for ProjectSlug
Source§fn clone(&self) -> ProjectSlug
fn clone(&self) -> ProjectSlug
Returns a duplicate 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 ProjectSlug
impl Debug for ProjectSlug
Source§impl<'de> Deserialize<'de> for ProjectSlug
impl<'de> Deserialize<'de> for ProjectSlug
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 ProjectSlug
impl Display for ProjectSlug
Source§impl Hash for ProjectSlug
impl Hash for ProjectSlug
Source§impl PartialEq for ProjectSlug
impl PartialEq for ProjectSlug
Source§impl Serialize for ProjectSlug
impl Serialize for ProjectSlug
impl Eq for ProjectSlug
impl StructuralPartialEq for ProjectSlug
Auto Trait Implementations§
impl Freeze for ProjectSlug
impl RefUnwindSafe for ProjectSlug
impl Send for ProjectSlug
impl Sync for ProjectSlug
impl Unpin for ProjectSlug
impl UnsafeUnpin for ProjectSlug
impl UnwindSafe for ProjectSlug
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.