Struct google_cloudtrace2::api::TruncatableString [−][src]
Expand description
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
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.
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.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TruncatableString
impl Send for TruncatableString
impl Sync for TruncatableString
impl Unpin for TruncatableString
impl UnwindSafe for TruncatableString
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more