Struct google_cloudtrace2::TruncatableString[][src]

pub struct TruncatableString {
    pub value: Option<String>,
    pub truncated_byte_count: Option<i32>,
}

Represents a string that might be shortened to a specified length.

This type is not used in any activity, and only used as part of another schema.

Fields

The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then value contains the first 128 bytes of the 500-byte string.

Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.

The number of bytes removed from the original string. If this value is 0, then the string was not shortened.

Trait Implementations

impl Default for TruncatableString
[src]

Returns the "default value" for a type. Read more

impl Clone for TruncatableString
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TruncatableString
[src]

Formats the value using the given formatter. Read more

impl Part for TruncatableString
[src]

Auto Trait Implementations