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

pub struct Visibility {
    pub rules: Vec<VisibilityRule>,
}

Visibility defines restrictions for the visibility of service elements. Restrictions are specified using visibility labels (e.g., PREVIEW) that are elsewhere linked to users and projects.

Users and projects can have access to more than one visibility label. The effective visibility for multiple labels is the union of each label’s elements, plus any unrestricted elements.

If an element and its parents have no restrictions, visibility is unconditionally granted.

Example:

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

Here, all methods are publicly visible except for the restricted methods EnhancedSearch and Delegate.

Fields

rules: Vec<VisibilityRule>

A list of visibility rules that apply to individual API elements.

NOTE: All service configuration rules follow “last one wins” order.

Trait Implementations

impl Clone for Visibility[src]

impl Debug for Visibility[src]

impl Default for Visibility[src]

impl Message for Visibility[src]

impl PartialEq<Visibility> for Visibility[src]

impl StructuralPartialEq for Visibility[src]

Auto Trait Implementations

impl RefUnwindSafe for Visibility

impl Send for Visibility

impl Sync for Visibility

impl Unpin for Visibility

impl UnwindSafe for Visibility

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]