pub struct Ppnum(/* private fields */);Expand description
A validated Ppoppo number — the canonical recipient identifier.
Per workspace contract (CLAUDE.md Architecture Terms): ≥11 digits,
^[0-9]{11,}$. Validated once at construction so adapters never
re-validate and the wire never sees a malformed value.
Implementations§
Source§impl Ppnum
impl Ppnum
Sourcepub fn try_new(s: impl Into<String>) -> Result<Self, PpnumError>
pub fn try_new(s: impl Into<String>) -> Result<Self, PpnumError>
Validate and wrap a candidate ppnum string.
§Errors
Returns PpnumError if the string is empty, shorter than 11
characters, or contains non-digit bytes.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consume into the owned String.
Trait Implementations§
impl Eq for Ppnum
impl StructuralPartialEq for Ppnum
Auto Trait Implementations§
impl Freeze for Ppnum
impl RefUnwindSafe for Ppnum
impl Send for Ppnum
impl Sync for Ppnum
impl Unpin for Ppnum
impl UnsafeUnpin for Ppnum
impl UnwindSafe for Ppnum
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§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request