pub struct Part(/* private fields */);Implementations§
Source§impl Part
impl Part
pub fn as_str(&self) -> &str
pub fn into_owned(self) -> Part
Sourcepub fn new(value: impl Into<String>) -> Result<Part, ErnError>
pub fn new(value: impl Into<String>) -> Result<Part, ErnError>
Creates a new Part with validation.
§Arguments
value- The part value to validate and create
§Validation Rules
- Part cannot be empty
- Part must be between 1 and 63 characters
- Part cannot contain ‘:’ or ‘/’ characters (reserved for ERN syntax)
- Part can only contain alphanumeric characters, hyphens, underscores, and dots
§Returns
Ok(Part)- If validation passesErr(ErnError)- If validation fails
Trait Implementations§
Source§impl ErnComponent for Part
impl ErnComponent for Part
Source§impl FromIterator<Part> for Parts
impl FromIterator<Part> for Parts
Source§impl PartialOrd for Part
impl PartialOrd for Part
impl Eq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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