pub struct WorkspaceStringError {
pub len: usize,
pub max: usize,
}Expand description
Error returned when a WorkspaceName or PermissionString exceeds the
allowed byte length.
Fields§
§len: usizeActual byte length of the rejected string.
max: usizeMaximum allowed byte length (MAX_WORKSPACE_STRING_BYTES).
Trait Implementations§
Source§impl Clone for WorkspaceStringError
impl Clone for WorkspaceStringError
Source§fn clone(&self) -> WorkspaceStringError
fn clone(&self) -> WorkspaceStringError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceStringError
impl Debug for WorkspaceStringError
Source§impl Display for WorkspaceStringError
impl Display for WorkspaceStringError
Source§impl Error for WorkspaceStringError
impl Error for WorkspaceStringError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for WorkspaceStringError
impl PartialEq for WorkspaceStringError
Source§fn eq(&self, other: &WorkspaceStringError) -> bool
fn eq(&self, other: &WorkspaceStringError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WorkspaceStringError
impl StructuralPartialEq for WorkspaceStringError
Auto Trait Implementations§
impl Freeze for WorkspaceStringError
impl RefUnwindSafe for WorkspaceStringError
impl Send for WorkspaceStringError
impl Sync for WorkspaceStringError
impl Unpin for WorkspaceStringError
impl UnsafeUnpin for WorkspaceStringError
impl UnwindSafe for WorkspaceStringError
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