Struct google_cloudtrace2::TruncatableString [−][src]
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
value: Option<String>
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.
truncated_byte_count: Option<i32>
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]
impl Default for TruncatableString
fn default() -> TruncatableString
[src]
fn default() -> TruncatableString
Returns the "default value" for a type. Read more
impl Clone for TruncatableString
[src]
impl Clone for TruncatableString
fn clone(&self) -> TruncatableString
[src]
fn clone(&self) -> TruncatableString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for TruncatableString
[src]
impl Debug for TruncatableString
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for TruncatableString
[src]
impl Part for TruncatableString
Auto Trait Implementations
impl Send for TruncatableString
impl Send for TruncatableString
impl Sync for TruncatableString
impl Sync for TruncatableString