Expiry

@Serializable
class Expiry(val duration: Duration)

geary:expiry

States something should expire after duration time since the component's creation. Commonly used in a relation with other components to remove those components later.

Constructors

Link copied to clipboard
constructor(duration: Duration)

Functions

Link copied to clipboard
operator fun component1(): Long
Link copied to clipboard

Properties

Link copied to clipboard
@Serializable(with = DurationSerializer::class)
val duration: Duration
Link copied to clipboard