pub struct CampaignSettings {
pub read_only: bool,
pub quotas: Quotas,
}Expand description
What a campaign may keep and do, set by whoever runs the services through the admin API (a hosting’s plans, say), and carried in its tokens so every service applies them. By default, the services’ own.
Fields§
§read_only: boolNothing may be changed, only looked at (until a bill is paid, say).
quotas: QuotasLimits of its own, in place of the services’.
Implementations§
Source§impl CampaignSettings
impl CampaignSettings
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether these are the defaults: the services’ own limits, and changes allowed.
Trait Implementations§
Source§impl Clone for CampaignSettings
impl Clone for CampaignSettings
Source§fn clone(&self) -> CampaignSettings
fn clone(&self) -> CampaignSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for CampaignSettings
impl ComposeSchema for CampaignSettings
Source§impl Debug for CampaignSettings
impl Debug for CampaignSettings
Source§impl Default for CampaignSettings
impl Default for CampaignSettings
Source§fn default() -> CampaignSettings
fn default() -> CampaignSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CampaignSettings
impl<'de> Deserialize<'de> for CampaignSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for CampaignSettings
impl PartialEq for CampaignSettings
Source§fn eq(&self, other: &CampaignSettings) -> bool
fn eq(&self, other: &CampaignSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CampaignSettings
impl Serialize for CampaignSettings
Source§impl ToSchema for CampaignSettings
impl ToSchema for CampaignSettings
impl Eq for CampaignSettings
impl StructuralPartialEq for CampaignSettings
Auto Trait Implementations§
impl Freeze for CampaignSettings
impl RefUnwindSafe for CampaignSettings
impl Send for CampaignSettings
impl Sync for CampaignSettings
impl Unpin for CampaignSettings
impl UnsafeUnpin for CampaignSettings
impl UnwindSafe for CampaignSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.