pub struct AppGuid(/* private fields */);Expand description
Validated application GUID - ensures format compliance and prevents injection
Implementations§
Source§impl AppGuid
impl AppGuid
Sourcepub fn new(guid: impl Into<String>) -> Result<Self, ValidationError>
pub fn new(guid: impl Into<String>) -> Result<Self, ValidationError>
Validates and constructs a new AppGuid
§Errors
Returns an error if the GUID is empty, exceeds maximum length, contains invalid characters, or doesn’t match the expected UUID format.
§Panics
This function contains an expect() call on a compile-time constant regex pattern
which should never panic in practice.
Sourcepub fn as_url_safe(&self) -> &str
pub fn as_url_safe(&self) -> &str
Get URL-safe representation (for path segments)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppGuid
impl<'de> Deserialize<'de> for AppGuid
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
impl Eq for AppGuid
impl StructuralPartialEq for AppGuid
Auto Trait Implementations§
impl Freeze for AppGuid
impl RefUnwindSafe for AppGuid
impl Send for AppGuid
impl Sync for AppGuid
impl Unpin for AppGuid
impl UnwindSafe for AppGuid
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<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.