#[non_exhaustive]pub struct ProjectProperties {
pub properties: Vec<Property>,
/* private fields */
}
Expand description
A descriptor for defining project properties for a service. One service may have many consumer projects, and the service may want to behave differently depending on some properties on the project. For example, a project may be associated with a school, or a business, or a government agency, a business type property on the project may affect how a service responds to the client. This descriptor defines which properties are allowed to be set on a project.
Example:
project_properties:
properties:
- name: NO_WATERMARK
type: BOOL
description: Allows usage of the API without watermarks.
- name: EXTENDED_TILE_CACHE_PERIOD
type: INT64
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.properties: Vec<Property>
List of per consumer project-specific properties.
Implementations§
Source§impl ProjectProperties
impl ProjectProperties
pub fn new() -> Self
Sourcepub fn set_properties<T, V>(self, v: T) -> Self
pub fn set_properties<T, V>(self, v: T) -> Self
Sets the value of properties.
Trait Implementations§
Source§impl Clone for ProjectProperties
impl Clone for ProjectProperties
Source§fn clone(&self) -> ProjectProperties
fn clone(&self) -> ProjectProperties
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 moreSource§impl Debug for ProjectProperties
impl Debug for ProjectProperties
Source§impl Default for ProjectProperties
impl Default for ProjectProperties
Source§fn default() -> ProjectProperties
fn default() -> ProjectProperties
Returns the “default value” for a type. Read more
Source§impl Message for ProjectProperties
impl Message for ProjectProperties
Source§impl PartialEq for ProjectProperties
impl PartialEq for ProjectProperties
impl StructuralPartialEq for ProjectProperties
Auto Trait Implementations§
impl Freeze for ProjectProperties
impl RefUnwindSafe for ProjectProperties
impl Send for ProjectProperties
impl Sync for ProjectProperties
impl Unpin for ProjectProperties
impl UnwindSafe for ProjectProperties
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