# MemberSource

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-build/type_system/enum-membersource/

**enum** · [`ferroui-build`](/docs/0.5.0/api/ferroui-build/) · v0.5.0

```rust
enum MemberSource
```

The declaration a member is the projection of: what the emitter of Rust source writes
the call of the member from (docs/porting/xaml.md, 9.5.3).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L57)

## Members

- [`TypeSystem`](#variant-typesystem)
- [`Registered`](#variant-registered)
- [`DefaultConstructor`](#variant-defaultconstructor)
- [`Declared`](#variant-declared)

<a id="variant-typesystem"></a>

### TypeSystem

```rust
TypeSystem
```

A member the type system defines: of the table of runtime library types, or one of
the members of the object model no declaration states.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L60)

<a id="variant-registered"></a>

### Registered

```rust
Registered { type_path: String, accessor: String }
```

A registered property, by the path of the type whose `ferro_properties!` block
has the accessor and the name of the accessor (`Type::name_property()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L63)

<a id="variant-defaultconstructor"></a>

### DefaultConstructor

```rust
DefaultConstructor { type_path: String, callable: crate::model::CallableModel }
```

`new:` of a class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L65)

<a id="variant-declared"></a>

### Declared

```rust
Declared { type_path: String, callable: crate::model::CallableModel, typed_function: Option<String>, fallible: bool, call: Option<crate::model::CallForm> }
```

A member of markup metadata: a constructor, a method, a static field, the
subscription of an event, an accessor of a plain property or `parse:`.
`call` is the call form the scan chose for the callable (9.5.3); nothing for a
member of an enumeration and for a model written before the choice existed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L70)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
