pub struct StringUtils;Expand description
String utilities for proxy workflows.
Implementations§
Source§impl StringUtils
impl StringUtils
Sourcepub fn sanitize_filename(filename: &str) -> String
pub fn sanitize_filename(filename: &str) -> String
Sanitize filename by removing invalid characters.
Sourcepub fn generate_id() -> String
pub fn generate_id() -> String
Generate a unique identifier.
Sourcepub fn bytes_to_hex(bytes: &[u8]) -> String
pub fn bytes_to_hex(bytes: &[u8]) -> String
Convert bytes to hex string.
Auto Trait Implementations§
impl Freeze for StringUtils
impl RefUnwindSafe for StringUtils
impl Send for StringUtils
impl Sync for StringUtils
impl Unpin for StringUtils
impl UnsafeUnpin for StringUtils
impl UnwindSafe for StringUtils
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more