Navigation
API > API/Plugins > API/Plugins/WebAPIEditor
Holds either FWebAPINameInfo or FString.
| Name | FWebAPINameVariant |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/Web/WebAPI/Source/WebAPIEditor/Public/Dom/WebAPISchema.h |
| Include Path | #include "Dom/WebAPISchema.h" |
Syntax
USTRUCT (BlueprintType )
struct FWebAPINameVariant
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Dom/WebAPISchema.h | |||
FWebAPINameVariant
(
const FWebAPINameInfo& InNameInfo |
Dom/WebAPISchema.h | ||
FWebAPINameVariant
(
const FString& InStringName |
Dom/WebAPISchema.h | ||
FWebAPINameVariant
(
const TCHAR* InStringName |
Dom/WebAPISchema.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NameInfo | FWebAPINameInfo | NameInfo. | Dom/WebAPISchema.h |
|
| NameString | FString | String. | Dom/WebAPISchema.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString GetDisplayName() |
The name for UI display. | Dom/WebAPISchema.h | |
FString GetJsonName() |
The json field name that the target API expects, rather than the UE friendly one. | Dom/WebAPISchema.h | |
bool HasNameInfo() |
Check if this has a valid NameInfo. | Dom/WebAPISchema.h | |
bool IsValid() |
Check that either NameInfo is set and valid, or a NameString is non-empty. | Dom/WebAPISchema.h | |
FString ToMemberName
(
const FString& InPrefix |
Get the fully formatted name as a valid member name. | Dom/WebAPISchema.h | |
FString ToString
(
bool bInJustName |
Retrieve the String of whichever property is valid. | Dom/WebAPISchema.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWebAPINameVariant & operator=
(
const FString& InStringName |
Copy-assignment. | Dom/WebAPISchema.h |