pub struct ProjectionView {
pub apps: Option<HashMap<String, bool>>,
pub tier: Option<String>,
}Fields§
§apps: Option<HashMap<String, bool>>Apps says, per console app, whether the org may open it. The SAME six keys are always present (studio, bot, world, platform, team, admin), so a client maps over it unconditionally; a key is false both when the plan does not grant the app and when commerce could not be reached, because a read that decides what to SHOW fails to LOCKED rather than to an error.
tier: Option<String>Tier is the plan slug commerce resolved for the org, or "" when the org has no active licensing subscription — which the console treats as its free default.
Implementations§
Source§impl ProjectionView
impl ProjectionView
pub fn new() -> ProjectionView
Trait Implementations§
Source§impl Clone for ProjectionView
impl Clone for ProjectionView
Source§fn clone(&self) -> ProjectionView
fn clone(&self) -> ProjectionView
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 Debug for ProjectionView
impl Debug for ProjectionView
Source§impl Default for ProjectionView
impl Default for ProjectionView
Source§fn default() -> ProjectionView
fn default() -> ProjectionView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProjectionView
impl<'de> Deserialize<'de> for ProjectionView
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 ProjectionView
impl PartialEq for ProjectionView
Source§impl Serialize for ProjectionView
impl Serialize for ProjectionView
impl StructuralPartialEq for ProjectionView
Auto Trait Implementations§
impl Freeze for ProjectionView
impl RefUnwindSafe for ProjectionView
impl Send for ProjectionView
impl Sync for ProjectionView
impl Unpin for ProjectionView
impl UnsafeUnpin for ProjectionView
impl UnwindSafe for ProjectionView
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