sui_rpc_api::field_mask

Trait FieldMaskUtil

Source
pub trait FieldMaskUtil: Sealed {
    // Required methods
    fn normalize(self) -> FieldMask;
    fn from_str(s: &str) -> FieldMask;
    fn from_paths<I: AsRef<str>, T: IntoIterator<Item = I>>(
        paths: T,
    ) -> FieldMask;
    fn display(&self) -> impl Display + '_;
    fn validate<M: MessageFields>(&self) -> Result<(), &str>;
}

Required Methods§

Source

fn normalize(self) -> FieldMask

Source

fn from_str(s: &str) -> FieldMask

Source

fn from_paths<I: AsRef<str>, T: IntoIterator<Item = I>>(paths: T) -> FieldMask

Source

fn display(&self) -> impl Display + '_

Source

fn validate<M: MessageFields>(&self) -> Result<(), &str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§