pub struct ResponseTeamDto {
pub id: u64,
pub name: String,
pub plan: Plan,
pub users_limit: u64,
pub browser_profiles_limit: u64,
pub subscription_expiration: PrimitiveDateTime,
}Expand description
Data transfer object representing a team in API responses.
This DTO contains all the essential information about a team that is safe to expose through the API, including subscription details and resource limits.
Fields§
§id: u64Unique identifier of the team
name: StringName of the team
plan: PlanCurrent subscription plan of the team
users_limit: u64Maximum number of users allowed in the team
browser_profiles_limit: u64Maximum number of browser profiles the team can create
subscription_expiration: PrimitiveDateTimeDate and time when the team’s subscription expires
Implementations§
source§impl ResponseTeamDto
impl ResponseTeamDto
sourcepub fn is_fully_free_plan(&self) -> bool
pub fn is_fully_free_plan(&self) -> bool
Checks if the team is on a completely free plan.
A team is considered to be on a fully free plan if:
- Their plan type is
Free - They have the default limit of 10 browser profiles
§Returns
trueif the team is on a completely free planfalseif the team has any paid features or modified limits
Trait Implementations§
source§impl Debug for ResponseTeamDto
impl Debug for ResponseTeamDto
Auto Trait Implementations§
impl Freeze for ResponseTeamDto
impl RefUnwindSafe for ResponseTeamDto
impl Send for ResponseTeamDto
impl Sync for ResponseTeamDto
impl Unpin for ResponseTeamDto
impl UnwindSafe for ResponseTeamDto
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.