FirefoxRelayProfile

Struct FirefoxRelayProfile 

Source
pub struct FirefoxRelayProfile {
Show 22 fields pub id: u64, pub api_token: String, pub at_mask_limit: bool, pub avatar: String, pub date_subscribed: String, pub emails_blocked: u64, pub emails_forwarded: u64, pub emails_replied: u64, pub has_megabundle: bool, pub has_phone: bool, pub has_premium: bool, pub has_vpn: bool, pub level_one_trackers_blocked: u64, pub metrics_enabled: bool, pub next_email_try: String, pub onboarding_free_state: u32, pub onboarding_state: u32, pub remove_level_one_email_trackers: bool, pub server_storage: bool, pub store_phone_log: bool, pub subdomain: String, pub total_masks: u64,
}
Expand description

Detailed information about a Firefox Relay profile.

Contains account-level information including subscription status, usage statistics, privacy settings, and configuration options.

Fields§

§id: u64

Unique identifier for this profile.

§api_token: String

The API token for this profile (may be redacted in some responses).

§at_mask_limit: bool

Whether the account has reached the maximum number of masks allowed.

§avatar: String

URL to the user’s avatar image.

§date_subscribed: String

Date when the user subscribed to premium features (ISO 8601 format).

§emails_blocked: u64

Total number of emails blocked across all relays.

§emails_forwarded: u64

Total number of emails forwarded across all relays.

§emails_replied: u64

Total number of emails replied to across all relays.

§has_megabundle: bool

Whether the account has the megabundle subscription.

§has_phone: bool

Whether the account has phone masking features.

§has_premium: bool

Whether the account has a premium subscription.

§has_vpn: bool

Whether the account has Mozilla VPN.

§level_one_trackers_blocked: u64

Number of level one email trackers blocked.

§metrics_enabled: bool

Whether metrics collection is enabled for this profile.

§next_email_try: String

Timestamp for the next allowed email creation attempt.

§onboarding_free_state: u32

Onboarding state for free tier users.

§onboarding_state: u32

General onboarding state.

§remove_level_one_email_trackers: bool

Whether level one email tracker removal is enabled.

§server_storage: bool

Whether server-side storage is enabled.

§store_phone_log: bool

Whether phone call logs are stored.

§subdomain: String

Custom subdomain for premium users (e.g., “username” in username@mozilla.email).

§total_masks: u64

Total number of email masks (relays) created.

Trait Implementations§

Source§

impl Debug for FirefoxRelayProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FirefoxRelayProfile

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Tabled for FirefoxRelayProfile

Source§

const LENGTH: usize = 22usize

A length of fields and headers, which must be the same.
Source§

fn fields(&self) -> Vec<Cow<'_, str>>

Fields method must return a list of cells. Read more
Source§

fn headers() -> Vec<Cow<'static, str>>

Headers must return a list of column names.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,