pub struct LicenseBuilder { /* private fields */ }Expand description
License builder for convenient construction
Implementations§
Source§impl LicenseBuilder
impl LicenseBuilder
Sourcepub fn expires_at(self, timestamp: u64) -> Self
pub fn expires_at(self, timestamp: u64) -> Self
Set expiration (Unix timestamp)
Sourcepub fn expires_in(self, seconds: u64) -> Self
pub fn expires_in(self, seconds: u64) -> Self
Set expiration relative to now (in seconds)
Sourcepub fn seat_limit(self, limit: u16) -> Self
pub fn seat_limit(self, limit: u16) -> Self
Set seat limit
Sourcepub fn query_limit(self, limit: u32) -> Self
pub fn query_limit(self, limit: u32) -> Self
Set query limit
Sourcepub fn watermarked(self) -> Self
pub fn watermarked(self) -> Self
Mark as watermarked
Sourcepub fn transferable(self) -> Self
pub fn transferable(self) -> Self
Mark as transferable
Sourcepub fn custom_terms(self, terms: Vec<u8>) -> Self
pub fn custom_terms(self, terms: Vec<u8>) -> Self
Set custom terms
Sourcepub fn build(self) -> LicenseBlock
pub fn build(self) -> LicenseBlock
Build the license block
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LicenseBuilder
impl RefUnwindSafe for LicenseBuilder
impl Send for LicenseBuilder
impl Sync for LicenseBuilder
impl Unpin for LicenseBuilder
impl UnsafeUnpin for LicenseBuilder
impl UnwindSafe for LicenseBuilder
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> 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> 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.