SimpleMDM-Swift Documentation

Structure Related​ToMany​Nested

public struct RelatedToManyNested<Parent: IdentifiableResource, Resource: ListableResource>: RelatedToResource, NestedResourceAttribute, AsyncSequence  

A special kind of relation to a group of remote resources, where the related resources are "children" resources of another resource.

This is mostly a detail implementation of the SimpleMDM API. You can use this type of relation as if it was a RelatedToMany relation for the most part. The only differences being that we do not know the related resources ids ahead of time, so this object does not exposes a relatedIds property.

%147 RelatedToManyNested RelatedToManyNested NestedResourceAttribute NestedResourceAttribute RelatedToManyNested->NestedResourceAttribute RelatedToResource RelatedToResource RelatedToManyNested->RelatedToResource AsyncSequence AsyncSequence RelatedToManyNested->AsyncSequence

Conforms To

AsyncSequence

Nested Type Aliases

Element

public typealias Element = Resource

Methods

next()

public mutating func next() 

make​Async​Iterator()

public func makeAsyncIterator() -> AsyncIterator