Skip to main content

NewCode

Enum NewCode 

Source
pub enum NewCode {
Show 16 variants AccountScreen { area: String, screen: AccountScreen, }, Area { module: String, name: String, access: AreaAccess, }, Impersonation { permitted: String, member: String, }, Tenancy { organization: String, member: String, }, Mail { module: String, name: String, list: Option<String>, }, Migration { module: String, name: String, }, SchemaMigration { module: String, name: String, }, Aggregate { module: String, name: String, }, Event { module: String, name: String, }, Listener { module: String, event: String, handler: String, }, MenuEntry(NewMenuEntry), Plan { module: String, name: String, }, Route(NewRoute), Task { module: String, name: String, }, Topic { module: String, name: String, }, Search { module: String, aggregate: String, },
}

Variants§

§

AccountScreen

One of sofie-identity’s screens of a member’s own account, mounted for a member area.

Fields

§area: String
§

Area

An area defined in the module’s contract, with a first page.

Fields

§module: String
§name: String
§access: AreaAccess
§

Impersonation

Signing in as a member of member, for a permitted principal of permitted.

Fields

§permitted: String
§member: String
§

Tenancy

Organizations acting in organization, listed and joined in member.

Fields

§organization: String
§member: String
§

Mail

A mail template and the function sending it; bulk mail of a list with one.

Fields

§module: String
§name: String
§

Migration

Fields

§module: String
§name: String
§

SchemaMigration

sofie gen migration: what the aggregates declare beyond what the migrations create.

Fields

§module: String
§name: String
§

Aggregate

Fields

§module: String
§name: String
§

Event

Fields

§module: String
§name: String
§

Listener

Fields

§module: String
§event: String
§handler: String
§

MenuEntry(NewMenuEntry)

§

Plan

A plan in the module’s src/plans.rs, sofie-billing’s catalog.

Fields

§module: String
§name: String
§

Route(NewRoute)

§

Task

Fields

§module: String
§name: String
§

Topic

A sofie-notify topic named <module>.<name>, in the module’s src/topics.rs.

Fields

§module: String
§name: String
§

Search

Full-text search over an aggregate’s searched fields.

Fields

§module: String
§aggregate: String

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.