Struct gapi_grpc::google::api::VisibilityRule[][src]

pub struct VisibilityRule {
    pub selector: String,
    pub restriction: String,
}

A visibility rule provides visibility configuration for an individual API element.

Fields

selector: String

Selects methods, messages, fields, enums, etc. to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

restriction: String

A comma-separated list of visibility labels that apply to the selector. Any of the listed labels can be used to grant the visibility.

If a rule has multiple labels, removing one of the labels but not all of them can break clients.

Example:

visibility:
  rules:
  - selector: google.calendar.Calendar.EnhancedSearch
    restriction: INTERNAL, PREVIEW

Removing INTERNAL from this restriction will break clients that rely on this method and only had access to it through INTERNAL.

Trait Implementations

impl Clone for VisibilityRule[src]

impl Debug for VisibilityRule[src]

impl Default for VisibilityRule[src]

impl Message for VisibilityRule[src]

impl PartialEq<VisibilityRule> for VisibilityRule[src]

impl StructuralPartialEq for VisibilityRule[src]

Auto Trait Implementations

impl RefUnwindSafe for VisibilityRule

impl Send for VisibilityRule

impl Sync for VisibilityRule

impl Unpin for VisibilityRule

impl UnwindSafe for VisibilityRule

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]