CustomStringAttribute 协议

该协议定义了更新字符串属性值的方法。

Instance methods

withValue(_:)

更新属性值。

withValueIfUndefined(_:)

如果属性值之前未设置,则更新属性值。

withValueReset()

重置属性值。

Method descriptions

withValue(_:)

func withValue(_ value: String?) -> UserProfileUpdate

更新属性值。

参数:

value

属性值为字符串。 最大值长度为200个字符。

返回:

The 用户配置更新 类实例。

withValueIfUndefined(_:)

func withValueIfUndefined(_ value: String?) -> UserProfileUpdate

如果属性值之前未设置,则更新属性值。

参数:

value

属性值为字符串。 最大值长度为200个字符。

返回:

The 用户配置更新 类实例。

withValueReset()

func withValueReset() -> UserProfileUpdate

重置属性值。

返回:

The 用户配置更新 类实例。