pub struct LicenseBuilder { /* private fields */ }
Expand description
Builder for License
.
Implementations§
Source§impl LicenseBuilder
impl LicenseBuilder
Sourcepub fn license_id(&mut self, value: String) -> &mut Self
pub fn license_id(&mut self, value: String) -> &mut Self
The unique identifier of the license
Sourcepub fn customer_id(&mut self, value: String) -> &mut Self
pub fn customer_id(&mut self, value: String) -> &mut Self
The customer ID associated with the license
Sourcepub fn installation_id(&mut self, value: String) -> &mut Self
pub fn installation_id(&mut self, value: String) -> &mut Self
If set, an identifier that should be used to lock the license to a particular site, cluster, etc.
Sourcepub fn issue_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn issue_time(&mut self, value: DateTime<Utc>) -> &mut Self
The time at which the license was issued
Sourcepub fn start_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn start_time(&mut self, value: DateTime<Utc>) -> &mut Self
The time at which the license starts being valid
Sourcepub fn expiration_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn expiration_time(&mut self, value: DateTime<Utc>) -> &mut Self
The time after which the license expires
Sourcepub fn termination_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn termination_time(&mut self, value: DateTime<Utc>) -> &mut Self
The time at which the license ceases to function and can no longer be used in any capacity
Sourcepub fn modules(&mut self, value: Vec<String>) -> &mut Self
pub fn modules(&mut self, value: Vec<String>) -> &mut Self
Modules is a list of the licensed enterprise modules
Trait Implementations§
Source§impl Clone for LicenseBuilder
impl Clone for LicenseBuilder
Source§fn clone(&self) -> LicenseBuilder
fn clone(&self) -> LicenseBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LicenseBuilder
impl RefUnwindSafe for LicenseBuilder
impl Send for LicenseBuilder
impl Sync for LicenseBuilder
impl Unpin 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