pub struct ReducedSubscriber {
pub supi: Pseudonym,
pub country: Option<Mcc>,
pub network: Option<PlmnId>,
}Expand description
A subscription reduced to a pseudonym, with the analytical dimensions kept.
The shape a warehouse wants: the identity is a pseudonym, and the country and network — which carry no individual identity but do carry the reporting value — survive as themselves.
§Still personal data
See Pseudonym. This type is narrower than a SubscriberRef, not
outside the regulation.
Fields§
§supi: PseudonymThe keyed stand-in for the subscription identity.
country: Option<Mcc>The country, where the identity was an IMSI.
network: Option<PlmnId>The network, where an assignment table resolved it.
Implementations§
Source§impl ReducedSubscriber
impl ReducedSubscriber
Sourcepub fn of(
supi: &Supi,
pseudonymiser: &impl Pseudonymiser,
widths: &impl MncWidths,
) -> Self
pub fn of( supi: &Supi, pseudonymiser: &impl Pseudonymiser, widths: &impl MncWidths, ) -> Self
Reduce a subscription identity.
The country is kept when the identity is an IMSI form; the network only when the supplied table resolves it. A network-specific identity yields neither, because it carries no country in its structure.
Trait Implementations§
Source§impl Clone for ReducedSubscriber
impl Clone for ReducedSubscriber
Source§impl Debug for ReducedSubscriber
impl Debug for ReducedSubscriber
Source§impl Display for ReducedSubscriber
impl Display for ReducedSubscriber
impl Eq for ReducedSubscriber
Source§impl Hash for ReducedSubscriber
impl Hash for ReducedSubscriber
Source§impl Ord for ReducedSubscriber
impl Ord for ReducedSubscriber
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReducedSubscriber
impl PartialEq for ReducedSubscriber
Source§impl PartialOrd for ReducedSubscriber
impl PartialOrd for ReducedSubscriber
impl StructuralPartialEq for ReducedSubscriber
Auto Trait Implementations§
impl Freeze for ReducedSubscriber
impl RefUnwindSafe for ReducedSubscriber
impl Send for ReducedSubscriber
impl Sync for ReducedSubscriber
impl Unpin for ReducedSubscriber
impl UnsafeUnpin for ReducedSubscriber
impl UnwindSafe for ReducedSubscriber
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