pub struct Directory {
    pub name: Option<String>,
    pub as_: Option<String>,
    pub type_: Option<DependencyType>,
    pub subdir: Option<String>,
    pub rights: Option<Operations>,
    pub path: Option<String>,
    pub availability: Option<Availability>,
    pub from_dictionary: Option<String>,
    /* private fields */
}Expand description
A directory capability.
Fields§
§name: Option<String>The name of the capability. This is not the path of the directory. Instead it is a name used for routing.
as_: Option<String>A rename of the capability, which can be set when routing to another component. This field is optional.
type_: Option<DependencyType>For information on this type, see
https://fuchsia.dev/go/components/declaration#DependencyType.
This field is optional and defaults to STRONG.
subdir: Option<String>The subdirectory of this directory to offer instead of the root. For
example, if you set bar/baz as the subdir of foo, then bar/baz
will be the root of the target’s foo. This field is optional.
rights: Option<Operations>The maximum rights that can be set by a component using this directory. This field is required if it is being routed to a local component, otherwise, it is optional.
path: Option<String>The path in which to install the directory. The path should have a
leading slash but no trailing slash, e.g. /config/data. This field
is required.
availability: Option<Availability>Optional. Cannot be set to SameAsTarget if to contains a local
component.
from_dictionary: Option<String>Optional. If set, the path to the dictionary routed by from which contains
the capability. Superseded by [Realm.AddRouteFromDictionary].
Trait Implementations§
Source§impl<D> Decode<Directory, D> for Directorywhere
    D: ResourceDialect,
 
impl<D> Decode<Directory, D> for Directorywhere
    D: ResourceDialect,
Source§impl TypeMarker for Directory
 
impl TypeMarker for Directory
Source§fn inline_align(_context: Context) -> usize
 
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
 
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
 
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
 
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for Directory
 
impl ValueTypeMarker for Directory
Source§type Borrowed<'a> = &'a Directory
 
type Borrowed<'a> = &'a Directory
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<Directory as TypeMarker>::Owned,
) -> <Directory as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<Directory as TypeMarker>::Owned, ) -> <Directory as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.