[][src]Struct sawtooth_sdk::messages::identity::Policy

pub struct Policy {
    pub name: String,
    pub entries: RepeatedField<Policy_Entry>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

name: Stringentries: RepeatedField<Policy_Entry>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl Policy[src]

pub fn new() -> Policy[src]

pub fn get_name(&self) -> &str[src]

pub fn clear_name(&mut self)[src]

pub fn set_name(&mut self, v: String)[src]

pub fn mut_name(&mut self) -> &mut String[src]

pub fn take_name(&mut self) -> String[src]

pub fn get_entries(&self) -> &[Policy_Entry][src]

pub fn clear_entries(&mut self)[src]

pub fn set_entries(&mut self, v: RepeatedField<Policy_Entry>)[src]

pub fn mut_entries(&mut self) -> &mut RepeatedField<Policy_Entry>[src]

pub fn take_entries(&mut self) -> RepeatedField<Policy_Entry>[src]

Trait Implementations

impl Clone for Policy[src]

impl Default for Policy[src]

impl<'a> Default for &'a Policy[src]

impl PartialEq<Policy> for Policy[src]

impl Debug for Policy[src]

impl Message for Policy[src]

impl Clear for Policy[src]

impl ProtobufValue for Policy[src]

Auto Trait Implementations

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

impl RefUnwindSafe for Policy

Blanket Implementations

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

impl<T> From<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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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